Hi,

In message "Creating thread safe classes for Ruby"
    on 03/04/09, Konstantin Knizhnik <knizhnik / garret.ru> writes:

|Is there some correct way in Ruby to write thread safe code which will
|be also executed outside thread context?

Unfortunately mutex does not support nested lock, so that if your
method recurse, it doesn't work well.  Use monitor.

							matz.