Public Member Functions | |
Wait (Simulation *s, Label l) | |
Construction. | |
Wait (Simulation *s, Label l, Process *oP1) | |
Construction and wait. | |
Wait (Simulation *s, Label l, Process *oP1, Process *oP2, bool all=true) | |
Construction. | |
Wait (Simulation *s, Label l, Process *oP1, Process *oP2, Process *oP3, bool all=true) | |
Construction. | |
Wait (Simulation *s, Label l, int size, Process *oP[], bool all=true) | |
Construction. | |
virtual | ~Wait () |
Destructor. | |
void | addProcess (Process *p) |
Add process p to observed list. | |
void | removeProcess (Process *p) |
Remove process p from observed list. | |
bool | getCondition () const |
Get Condition (wait for one or all observed Process objects to finish). | |
void | setCondition (bool all=true) |
Set Condition (wait for one or all observed Process objects to finish). | |
bool | wait () |
Wait for (one) all observed process to finish. | |
virtual Trace * | getTrace () const |
Pointer to trace. | |
virtual void | onDestroy (Process *sender) |
virtual void | onChangeState (Process *sender, Process::State oldState, Process::State newState) |
Static Public Attributes | |
Wait specific marks | |
const MarkTypeId | baseMarkId = 1000 |
const MarkType | markCreate = MarkType("create", baseMarkId+1, typeid(Wait)) |
const MarkType | markDestroy = MarkType("destroy", baseMarkId+2, typeid(Wait)) |
const MarkType | markWait = MarkType("wait", baseMarkId+10, typeid(Wait)) |
const MarkType | markContinue = MarkType("continue", baseMarkId+11, typeid(Wait)) |
const TagId | baseTagId = 1000 |
|
Construction.
|
|
Construction and wait.
This constructor creates a Wait object and waits for Process
|
|
Construction.
This constructor creates a Wait object and waits for the Process objects
|
|
Construction.
This constructor creates a Wait object and waits for the Process objects
|
|
Construction.
This constructor creates a Wait object and waits for the Process objects stored in
|
|
Wait for (one) all observed process to finish. Wait for one or all observed processes to finish. If the blocked Process is interrupted int is reactivated and wait() returns false. Otherwise wait() returns true. |