> I created a RMutex class that allows multiple locks by the same > thread and doesn't unlock if there is any lock remaining. It saves > the locker thread and counts the number of locks it did. When it > reaches 0, the mutex is unlocked. You can get it there: > http://www.lepton.fr/ruby/rmutex Standard distribution has sync.rb, it defines Sync object and Sync_m mix-in module which provide reentrant reader/writer lock. Just FYI. -- kjana / os.xaxon.ne.jp March 1, 2001 Abstract should not be abstract.