org.demac.impl.util
Class Semaphore

java.lang.Object
  extended by org.demac.impl.util.Semaphore

public class Semaphore
extends java.lang.Object

A standard sempahore.


Constructor Summary
Semaphore()
           
Semaphore(int initial)
           
 
Method Summary
 void acquire()
           
 void release()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Semaphore

public Semaphore()

Semaphore

public Semaphore(int initial)
Method Detail

acquire

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

release

public void release()