|
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.StaticTreeBarrier.StaticTreeBarrierParty
protected class StaticTreeBarrier.StaticTreeBarrierParty
Stores data required by each party that uses the barrier.
Field Summary | |
---|---|
protected int |
id_
Unique id of this party [0 .. numParties-1]. |
protected int |
LEFT_CHILD
Pre-computed constant that represents the ID of my left child in the tree. |
protected int |
RIGHT_CHILD
Pre-computed constant that represents the ID of my right child in the tree. |
protected boolean |
sense_
Sense flag that switches between true and
false . |
protected int |
THRESH
Pre-computed constant that indicates the first leaf node. |
Constructor Summary | |
---|---|
protected |
StaticTreeBarrier.StaticTreeBarrierParty(int id)
Constructor. |
Method Summary | |
---|---|
protected void |
await()
Called when this party reaches the barrier. |
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 int THRESH
protected final int LEFT_CHILD
protected final int RIGHT_CHILD
Constructor Detail |
---|
protected StaticTreeBarrier.StaticTreeBarrierParty(int id)
id
- the numeric id of this thread within the barrier.Method Detail |
---|
protected void await()
|
jbarrier | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |