|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.util.Counter
public class Counter
This class is part of the Egothor Project
Constructor Summary | |
---|---|
Counter(int counter)
Constructor for the Counter object. |
Method Summary | |
---|---|
void |
down()
Subtract 1 from the Counter's value. |
void |
up()
Add 1 to the Counter's value. |
void |
waitFor0()
Lock the calling thread until this Counter's value is 0. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Counter(int counter)
counter
- the Counter's initial valueMethod Detail |
---|
public void up()
public void down()
public void waitFor0()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |