From: Tim Pease Date: 2009-05-07T23:36:04+09:00 Subject: Re: How write a synchronized class On Thu, May 7, 2009 at 6:38 AM, Guillaume dorchies wrote: > Hello > > How do to write a synchronized class like in java for Ruby > > I try with a Mutex but if a method call another method of the same > instance I obtain a Deadlock. > > I wrote a reentrant mutex class at one point in time ... http://gist.github.com/108117 Give it a shot and see if it fixes your deadlock issue. Blessings, TwP