< prev index next >
src/java.base/share/classes/sun/misc/ConditionLock.java
Print this page
*** 32,42 ****
*
* The lockWhen() and unlockWith() methods can be safely intermixed
* with the lock() and unlock() methods. However if there is a thread
* waiting for the state variable to become a particular value and you
* simply call Unlock(), that thread will not be able to acquire the
! * lock until the state variable equals its desired value. <p>
*
* @author Peter King
*/
public final
class ConditionLock extends Lock {
--- 32,42 ----
*
* The lockWhen() and unlockWith() methods can be safely intermixed
* with the lock() and unlock() methods. However if there is a thread
* waiting for the state variable to become a particular value and you
* simply call Unlock(), that thread will not be able to acquire the
! * lock until the state variable equals its desired value.
*
* @author Peter King
*/
public final
class ConditionLock extends Lock {
< prev index next >