|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jclass.SimpleBarrier
A barrier. It is a class that is used by parallel running threads
to sync each other. It has a method that, when called, stops any
thread that calls it until a certain number of calls do occur, then
every thread goes on.
Written: Radu Sion
Version: 0.11
Source: SimpleBarrier.java
Visit
Smart Software
Constructor Summary | |
SimpleBarrier(int N)
Creates a new SimpleBarrier. |
Method Summary | |
void |
enter()
Enqueues the current thread at this barrier, waiting for all the others to join, that is waiting until N (see constructor) threads reached enter(). |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SimpleBarrier(int N)
N
- See description above.Method Detail |
public void enter()
|
|||||||||
PREV CLASS F="../jclass/SimpleData.html">NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |