release()
函数用于释放线程锁(解锁)。
release()
示例请参考ThreadCondition.notify()
章节的内容。
在调用wait()
之后需要释放当前条件对象的线程锁(解锁)。
{@fun/Threads/ThreadCondition/notify notify}, {@fun/Threads/ThreadCondition/notifyAll notifyAll}, {@fun/Threads/ThreadCondition/wait wait}, {@fun/Threads/ThreadCondition/acquire acquire}