From: "Guy N. Hurst" Date: 2002-03-13T14:32:09+09:00 Subject: Re: Some potential RCRs > Bob Alexander wrote: > ... > The built-in Mutex object should be nestable. > > Acquiring a mutex in nested contexts in the same thread should not cause > deadlock. It doesn't seem appropriate for a language at Ruby's level to have a > non-nestable Mutex, and it is a pothole for program errors. > See http://www.lepton.fr/ruby/rmutex/ Or, you can use a monitor. (See monitor.rb) Guy N. Hurst