The notifyAll()
function wakes up all waiting threads.
notifyAll()
Please refer to the ThreadCondition.notify()
section for examples.
The notifyAll()
function wakes up all waiting threads one by one, and the awakened threads reacquire the thread lock.
{@fun/Threads/ThreadCondition/notify notify}, {@fun/Threads/ThreadCondition/wait wait}, {@fun/Threads/ThreadCondition/acquire acquire}, {@fun/Threads/ThreadCondition/release release}
notify wait