Public Member Functions | |
Synch () | |
long | wait (int msec) |
void | trigger () |
void | reset () |
long | count () |
void | setUserArg (Object userArg) |
Object | getUserArg () |
de::gsi::bel::utils::Synch::Synch | ( | ) | [inline] |
Create an Synch object with zero trigger count.
long de::gsi::bel::utils::Synch::count | ( | ) | [inline] |
Get the trigger count.
Object de::gsi::bel::utils::Synch::getUserArg | ( | ) | [inline] |
Get the user object
void de::gsi::bel::utils::Synch::reset | ( | ) | [inline] |
Resets the trigger count.
void de::gsi::bel::utils::Synch::setUserArg | ( | Object | userArg | ) | [inline] |
Set the user object of Synch object.
userArg | User object to set. |
void de::gsi::bel::utils::Synch::trigger | ( | ) | [inline] |
Triggers the synch object. The threads waiting for the synch object return from wait().
long de::gsi::bel::utils::Synch::wait | ( | int | msec | ) | [inline] |
Returns when sync object is triggered or was triggered in the past
msec | wait for at most milliseconds |