com.jalios.util
Class Semaphore

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

public abstract class Semaphore
extends java.lang.Object


Field Summary
static java.lang.String REVISION
           
protected  int value
           
 
Constructor Summary
protected Semaphore()
           
protected Semaphore(int initial)
           
 
Method Summary
 void interruptibleP()
           
 void P()
           
 java.lang.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 java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

interruptibleP

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


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