org.objectweb.perseus.concurrency.lib
Class Semaphore

java.lang.Object
  extended byorg.objectweb.perseus.concurrency.lib.Semaphore
Direct Known Subclasses:
TimeStamp

public class Semaphore
extends java.lang.Object

A semaphore which can be disable at the definition time.

Author:
S.Chassande-Barrioz

Field Summary
 boolean on
           
 
Constructor Summary
Semaphore()
           
Semaphore(boolean on)
           
Semaphore(boolean on, boolean checkthread)
           
Semaphore(boolean on, boolean checkthread, boolean reentrant)
           
 
Method Summary
 java.lang.Object getUser()
           
 void init(boolean isOn)
           
 boolean isActive()
           
 boolean P()
           
 void V()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

on

public boolean on
Constructor Detail

Semaphore

public Semaphore()

Semaphore

public Semaphore(boolean on)

Semaphore

public Semaphore(boolean on,
                 boolean checkthread)

Semaphore

public Semaphore(boolean on,
                 boolean checkthread,
                 boolean reentrant)
Method Detail

init

public void init(boolean isOn)

isActive

public boolean isActive()

P

public boolean P()

getUser

public java.lang.Object getUser()

V

public void V()


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.