tico.interpreter
Class TSemaphore

java.lang.Object
  extended by tico.interpreter.TSemaphore

public class TSemaphore
extends java.lang.Object

Version:
e1.0 Feb, 2010
Author:
Carolina Palacio

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

Constructor Detail

TSemaphore

public TSemaphore(int initial)
Method Detail

release

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

acquire

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

releaseWhenStop

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