= private = protected
wait(mutex)
Releases the lock held in mutex and waits; reacquires the lock on wakeup.
# File lib/thread.rb, line 62 def wait(mutex) begin # TODO: mutex should not be used @waiters_mutex.synchronize do @waiters.push(Thread.current) end mutex.sleep end end