|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectamip.api.highlevel.util.Semaphore
public class Semaphore
| Constructor Summary | |
|---|---|
Semaphore()
|
|
Semaphore(int i)
|
|
| Method Summary | |
|---|---|
void |
acquire()
Decrements internal counter, blocking if the counter is already zero. |
void |
release()
Increments internal counter, possibly awakening a thread wait()ing in acquire(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Semaphore()
public Semaphore(int i)
| Method Detail |
|---|
public void release()
public void acquire()
throws java.lang.InterruptedException
java.lang.InterruptedException - passed from this.wait().
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||