|
jbarrier | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.bonn.cs.net.jbarrier.barrier.TournamentBarrier.TournamentBarrierParty
protected class TournamentBarrier.TournamentBarrierParty
Stores data required by each party that uses the barrier.
Field Summary | |
---|---|
protected java.util.concurrent.atomic.AtomicBoolean[] |
flags_
My set of flags to be set/queried during the barrier. |
protected int |
id_
Unique id of this party [0 .. numParties-1]. |
protected TournamentBarrier.Round[] |
rounds_
Pre-computed information about the rounds of the barrier. |
protected boolean |
sense_
Sense flag that switches between true and
false . |
Constructor Summary | |
---|---|
protected |
TournamentBarrier.TournamentBarrierParty(int id)
Constructor. |
Method Summary | |
---|---|
protected void |
await()
Called when this party reaches the barrier. |
protected void |
setupBarrier()
Sets up this party for the barrier algorithm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int id_
protected boolean sense_
true
and
false
.
protected final TournamentBarrier.Round[] rounds_
protected final java.util.concurrent.atomic.AtomicBoolean[] flags_
Constructor Detail |
---|
protected TournamentBarrier.TournamentBarrierParty(int id)
id
- the numeric id of this thread within the barrier.Method Detail |
---|
protected void setupBarrier()
protected void await()
|
jbarrier | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |