|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--serp.util.Semaphore
Semaphore implementation.
Constructor Summary | |
Semaphore()
Construct the semaphore with an initial available count of 1. |
|
Semaphore(int available)
Construct the semaphore with an initial available count of avaiable . |
Method Summary | |
void |
down()
Down the semaphore's available count. |
boolean |
down(long timeout)
Down the semaphore's available count. |
int |
getAvailable()
Returns the current available count. |
void |
up()
Up the semaphore. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public Semaphore()
public Semaphore(int available)
avaiable
.Method Detail |
public int getAvailable()
public void down()
up()
'd.public boolean down(long timeout)
up()
'd or the given timeout
elapses.public void up()
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |