public abstract class InternalBarrier extends Barrier
size() > 0
numberWaitingThreads() >= 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, numberWaitingThreads
await, await, broadcast, interruptWaitingThreads, lockIsMine, registerAwaitingThreads, signal, syncronizedLockIsMine
public InternalBarrier()
public InternalBarrier(boolean registerAwaitingThreads)
registerAwaitingThreads
- if true, threads are registered when waiting