This class defines a thread synchonisation object.
Construction
Operations
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
This class defines a thread synchonisation object.This may be used to send signals to a thread and await an acknowldegement that the signal was processed. This can be be used to initate an action in another thread and wait for the action to be completed.
... thread one while (condition) { sync.Wait(); do_something(); sync.Acknowledge(); } ... thread 2 do_something_else(); sync.Signal(); // At this point thread 1 wake up and does something. do_yet_more(); // However, this does not get done until Acknowldege() // is called in the other thread.
Unlike the PSyncPoint::Signal() this function will block until the target thread that was blocked by the Wait() function has resumed execution and called the Acknowledge() function.
The waitTime parameter is used as a maximum amount of time to wait for the achnowledgement to be returned from the other thread.
void Acknowledge()
Alphabetic index HTML hierarchy of classes or Java