org.objectweb.perseus.concurrency.lib
Class Semaphore
java.lang.Object
|
+--org.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
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 |
on
public boolean on
Semaphore
public Semaphore()
Semaphore
public Semaphore(boolean on)
Semaphore
public Semaphore(boolean on,
boolean checkthread)
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.