From: Justin Collins Date: 2008-12-29T06:57:56+09:00 Subject: [ruby-core:20943] 1.9.1 and Mutex#try_lock Hi all, I have a method I'm using which starts off with return unless @mutex.try_lock where @mutex is a Mutex. In 1.8.7, this works fine. But in 1.9.1 I get Exception `ThreadError' - deadlock; recursive locking which I assume is from http://redmine.ruby-lang.org/repositories/diff/ruby-19/thread.c?rev=12173 Is this a necessary exception? It doesn't seem like try_lock would cause a deadlock, considering it is supposed to return whether or not the lock is granted. -Justin