| Contents | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV | NEXT | SHOW LISTS | HIDE LISTS | ||
java.lang.Object
|
+----jsync.Event
signal()
method and remains in this state until reset() method will be
invoked. Setting event to signaled state will awoke all waiting threads.
| Constructor Summary | |
| Event()
|
|
| Event(boolean initState)
|
|
| Method Summary | |
| void | reset()
|
| void | signal()
|
| void | waitEvent()
|
| boolean | waitEvent(long timeout)
|
| Methods inherited from class java.lang.Object |
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Event()
public Event(boolean initState)
initState
- initial state of event
| Method Detail |
public void waitEvent()
public boolean waitEvent(long timeout)
timeout
- the maximum time to wait in milliseconds.
true if event is signaled, false
if wait() was terminated due to timeout expiration.public void signal()
public void reset()
| Contents | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV | NEXT | SHOW LISTS | HIDE LISTS | ||