public final class HjSeqEventCount extends Object implements HjEventCount
Constructor and Description |
---|
HjSeqEventCount(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 HjEventCount
public long read()
read
in interface HjEventCount
public void await(long v) throws SuspendableException
await
in interface HjEventCount
v
- The value of the eventcount to wait untilSuspendableException
Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.