= private = protected
synchronize()
Obtains a lock, runs the block, and releases the lock when the block completes. See the example under Mutex.
# File prelude.rb, line 7 def synchronize self.lock begin yield ensure self.unlock rescue nil end end