The acquire()
function is used to request a thread lock (lock).
acquire()
Please refer to the ThreadCondition.notify()
section for examples.
Before using wait()
, you need to request the thread lock (lock) of the current condition object.
{@fun/Threads/ThreadCondition/notify notify}, {@fun/Threads/ThreadCondition/notifyAll notifyAll}, {@fun/Threads/ThreadCondition/wait wait}, {@fun/Threads/ThreadCondition/release release}
wait release