Package io.deephaven.util.locks
Interface AwareLock
- All Superinterfaces:
Lock
- All Known Subinterfaces:
AwareFunctionalLock
Extension to the
Lock
interface to make awareness of the current thread's state accessible.-
Method Summary
Modifier and TypeMethodDescriptionboolean
Query whether the current thread holds this lock.Methods inherited from interface java.util.concurrent.locks.Lock
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock
-
Method Details
-
isHeldByCurrentThread
boolean isHeldByCurrentThread()Query whether the current thread holds this lock.- Returns:
- True if the current thread holds this lock, else false
-