#include <syncpoint.h>
Inheritance diagram for PSyncPoint:
Public Member Functions | |
PSyncPoint () | |
PSyncPoint (const PSyncPoint &) |
... thread 2 do_something_else(); sync.Signal(); // At this point thread 1 wake up and does something. do_yet_more();
{verbatim}
Note that events are boolean in nature. If "thread one" is not waiting on the event, multiple calls to Signal() are ignored, thread one will only exit the Wait() call a sibngle time once it gets there. Similarly, if multiple threads are waiting on the event, only one thread will be released. As you cannot know which thread will be released this mode of use is not recommended.
PSyncPoint::PSyncPoint | ( | ) |
Create a new sync point.
PSyncPoint::PSyncPoint | ( | const PSyncPoint & | ) |