|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkilim.Semaphore
public class Semaphore
Same as Semaphore, but
for Kilim tasks.
FIXME: Task.pause(PauseReason) is package-access-restricted,
so we need to put this class in the kilim package to get access to it.
| Constructor Summary | |
|---|---|
Semaphore(int n)
|
|
| Method Summary | |
|---|---|
void |
acquire()
|
int |
observe()
|
void |
release()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Semaphore(int n)
| Method Detail |
|---|
public void acquire()
throws kilim.Pausable
kilim.Pausablepublic void release()
public int observe()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||