org.globus.wsrf.container
Class Semaphore

java.lang.Object
  extended byorg.globus.wsrf.container.Semaphore

public class Semaphore
extends java.lang.Object

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

semaphore

private int semaphore
Constructor Detail

Semaphore

public Semaphore()

Semaphore

public Semaphore(int initialValue)
Method Detail

acquire

public void acquire()
             throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

waitForSignal

public void waitForSignal()
                   throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

release

public void release()

sendSignal

public void sendSignal()