|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.container.Semaphore
This class implements a simple semaphore for thread synchronization.
| Field Summary | |
private int |
semaphore
|
| Constructor Summary | |
Semaphore()
|
|
Semaphore(int initialValue)
|
|
| Method Summary | |
void |
acquire()
|
void |
release()
|
void |
sendSignal()
|
void |
waitForSignal()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int semaphore
| Constructor Detail |
public Semaphore()
public Semaphore(int initialValue)
| Method Detail |
public void acquire()
throws java.lang.InterruptedException
java.lang.InterruptedException
public void waitForSignal()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void release()
public void sendSignal()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||