wait abstract method

void wait(
  1. Mutex mutex
)

Block and wait until another thread calls notify.

mutex must be a Mutex object exclusively held by the current thread. It will be released and the thread will block until another thread calls notify.

Implementation

void wait(Mutex mutex);