com.jalios.util
Class Semaphore

java.lang.Object
  extended by com.jalios.util.Semaphore
Direct Known Subclasses:
BinarySemaphore

public abstract class Semaphore
extends Object


Field Summary
static String REVISION
           
protected  int value
           
 
Constructor Summary
protected Semaphore()
           
protected Semaphore(int initial)
           
 
Method Summary
 void interruptibleP()
           
 void P()
           
 String toString()
           
 void V()
           
 int value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

value

protected int value
Constructor Detail

Semaphore

protected Semaphore()

Semaphore

protected Semaphore(int initial)
Method Detail

P

public void P()

V

public void V()

value

public int value()

toString

public String toString()
Overrides:
toString in class Object

interruptibleP

public void interruptibleP()
                    throws InterruptedException
Throws:
InterruptedException


Copyright © 2001-2010 Jalios SA. All Rights Reserved.