From: Michael Witrant Date: 2001-11-07T08:51:12+09:00 Subject: [ruby-talk:24479] Re: Is Mutex Reentrant? On Wed, 7 Nov 2001 06:47:33 +0900, "Hal E. Fulton" wrote: > From: Jason Voegele > [snip] > > I would have thought that mutexes would be reentrant, meaning that a > > thread could call synchronize multiple times and not interfere with > > itself. So, my question is, are mutexes reentrant? If so, what have > > I done wrong? > > I think that Mutexes are in fact not reentrant. You might want to > look at the monitor.rb library for an alternative (unless you can just > refactor to avoid the reentrant code). You can also use the RMutexes availiable there: http://www.lepton.fr/ruby/rmutex/ Mike.