
public final class HjParEventCount extends Object implements HjEventCount
| Constructor and Description |
|---|
HjParEventCount(int initialCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
The primitive advance() is used to signal the occurrence of an event.
|
void |
await(long v)
Quite often, a process may not wish to execute until some event in a class in which it has interest has happened.
|
long |
read()
Return the current value of an eventcount.
|
public void advance()
advance in interface HjEventCountpublic long read()
read in interface HjEventCountpublic void await(long v)
throws SuspendableException
await in interface HjEventCountv - The value of the eventcount to wait untilSuspendableExceptionCopyright © 2015 Rice University - Department of Computer Science. All rights reserved.