Methods Summary |
---|
synchronized void | clear()Clears a posted event semaphore.
posted = false;
|
public synchronized boolean | isPosted()
return posted;
|
synchronized void | post()Posts the event semaphore.
All waiters are notified.
if( !posted )
notifyAll();
posted = true;
|
public synchronized void | waitEvent()Waits for the event to be posted.
If the event has already been posted, then the operation returns immediately.
if( !posted )
wait();
|