类 SmartLock.WithCondition

java.lang.Object
cn.taketoday.util.concurrent.SmartLock
cn.taketoday.util.concurrent.SmartLock.WithCondition
所有已实现的接口:
Serializable, AutoCloseable
封闭类:
SmartLock

public static class SmartLock.WithCondition extends SmartLock

A reentrant lock with a condition that can be used in a try-with-resources statement.

Typical usage:

 // Waiting
 try (SmartLock lock = lock.lock())
 {
     lock.await();
 }

 // Signaling
 try (SmartLock lock = lock.lock())
 {
     lock.signalAll();
 }
 
另请参阅: