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)
           
 
Method Summary
 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)
Method Detail

init

public void init(boolean isOn)

isActive

public boolean isActive()

P

public boolean P()

V

public void V()


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