|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Barrier
A thread barrier interface.
size() > 0
numberWaitingThreads() >= 0 && numberWaitingThreads() < size()
This class follows DbC(tm) methodology
(Wikipedia).
Where possible, contracts are implement with native's Java
assert.
Method Summary | |
---|---|
void |
await()
Caller will wait until all barrier threads are also waiting, situation in which all of them are awakened. |
int |
numberWaitingThreads()
Number of threads currently waiting on the barrier. |
int |
size()
Number of threads defined for the barrier. |
Method Detail |
---|
int size()
int numberWaitingThreads()
void await() throws ThreadInterruptedException
ThreadInterruptedException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |