[#927] UnboundMethod#to_proc — Dave Thomas <dave@...>

I'm wondering what I can do with a Proc generated by

17 messages 2003/04/06

Re: Creating thread safe classes for Ruby

From: matz@... (Yukihiro Matsumoto)
Date: 2003-04-08 18:59:37 UTC
List: ruby-core #952
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.

In This Thread

Prev Next