method

wait

wait(mutex)
public

Releases the lock held in mutex and waits; reacquires the lock on wakeup.