public interface SyncCV extends InterruptibleAwaitingThreads
This class follows DbC(tm) methodology
(Wikipedia).
Where possible, contracts are implement with native's Java assert.
| Modifier and Type | Method and Description |
|---|---|
void |
await()
Condition variable wait service.
|
void |
broadcast()
Condition variable broadcast (notifyAll) service.
|
boolean |
lockIsMine()
Is lock owned by me?
|
void |
signal()
Condition variable signal (notify) service.
|
interruptWaitingThreads, registerAwaitingThreadsboolean lockIsMine()
void await()
throws ThreadInterruptedException
lockIsMine() - lock owned by meThreadInterruptedExceptionvoid signal()
lockIsMine() - lock owned by mevoid broadcast()
lockIsMine() - lock owned by me