= private = protected
wait(mutex)
Releases the lock held in mutex and waits; reacquires the lock on wakeup.
# File lib/thread.rb, line 194 def wait(mutex) begin mutex.exclusive_unlock do @waiters.push(Thread.current) Thread.stop end ensure mutex.lock end end