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