This class is intended to be thread-safe.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | InterruptibleReentrantLock(final boolean
true means threads should acquire contended locks as if
waiting in a FIFO queue fairness)Constructs a new InterruptibleReentrantLock with the given fairness policy. |
| Modifier and Type | Method and Description |
|---|---|
| public void | interruptWaiters(final Condition
the condition on which the threads are waiting. condition)Interrupts the threads that are waiting on a specific condition |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| InterruptibleReentrantLock | back to summary |
|---|---|
| public InterruptibleReentrantLock(final boolean fairness) Constructs a new InterruptibleReentrantLock with the given fairness policy.
| |
| interruptWaiters | back to summary |
|---|---|
| public void interruptWaiters(final Condition condition) Interrupts the threads that are waiting on a specific condition
| |