public abstract class InternalBarrier extends Barrier
size() > 0numberWaitingThreads() >= 0 && numberWaitingThreads() < size()This class follows DbC(tm) methodology
(Wikipedia).
Where possible, contracts are implement with native's Java assert.
| Constructor and Description |
|---|
InternalBarrier()
Constructs a new internal barrier registering waiting threads.
|
InternalBarrier(boolean registerAwaitingThreads)
Constructs a new internal barrier.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
size()
Number of threads defined for the barrier.
|
await, awaitCount, count, numberWaitingThreadsawait, await, broadcast, interruptWaitingThreads, lockIsMine, registerAwaitingThreads, signal, syncronizedLockIsMinepublic InternalBarrier()
public InternalBarrier(boolean registerAwaitingThreads)
registerAwaitingThreads - if true, threads are registered when waiting