org.knopflerfish.util
public class Semaphore extends java.lang.Object
Semaphore class handles synchronization and waiting for
values.| Constructor and Description |
|---|
Semaphore() |
public java.lang.Object get(long timeout)
timeout milliseconds for this Semaphore to
receive a value.public void set(java.lang.Object v)
get(long) to return the value. If set(Object) is called several times with a short or no delay
between the calls, the exact value returned by a given blocked
call to get(long) is not deterministic.v - The new value.public void reset()
public void close()