class InterruptibleReentrantLock
extends java.util.concurrent.locks.ReentrantLock
This class is intended to be thread-safe.
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
InterruptibleReentrantLock(boolean fairness)
Create a new InterruptibleReentrantLock with the given fairness policy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
interruptWaiters(java.util.concurrent.locks.Condition condition)
Interrupt the threads that are waiting on a specific condition
|
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlockprivate static final long serialVersionUID