|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface SyncCV
Java's interface for condition variables.
This class follows DbC(tm) methodology
(Wikipedia).
Where possible, contracts are implement with native's Java assert.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface pt.ua.concurrent.InterruptibleAwaitingThreads |
|---|
interruptWaitingThreads, registerAwaitingThreads |
| Method Detail |
|---|
boolean lockIsMine()
void await()
throws ThreadInterruptedException
lockIsMine() - lock owned by me
ThreadInterruptedExceptionvoid signal()
lockIsMine() - lock owned by me
void broadcast()
lockIsMine() - lock owned by me
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||