Syncronization object.
More...
#include <B2BITS_ManualEvent.h>
|
| ManualEvent (bool signaled=false) |
| Default constructor.
|
|
void | pulse () |
| Wakes all waiting threads and sets state to nonsignaled.
|
|
void | reset () |
| Sets the state of the event to nonsignaled, causing waiting threads to block.
|
|
void | set () |
| Sets the state of the event to signaled, allowing one or more waiting threads to proceed.
|
|
void | wait () |
| Blocks the current thread until event is set to signaled state.
|
|
bool | wait (unsigned int msec) |
| Blocks the current thread until event is set to signaled state or timeout.
|
|
virtual | ~ManualEvent () |
| Destructor.
|
|
Syncronization object.
Notifies a waiting thread that an event has occurred.
◆ ManualEvent()
System::ManualEvent::ManualEvent |
( |
bool | signaled = false | ) |
|
|
explicit |
◆ ~ManualEvent()
virtual System::ManualEvent::~ManualEvent |
( |
| ) |
|
|
virtual |
◆ pulse()
void System::ManualEvent::pulse |
( |
| ) |
|
Wakes all waiting threads and sets state to nonsignaled.
◆ reset()
void System::ManualEvent::reset |
( |
| ) |
|
Sets the state of the event to nonsignaled, causing waiting threads to block.
◆ set()
void System::ManualEvent::set |
( |
| ) |
|
Sets the state of the event to signaled, allowing one or more waiting threads to proceed.
◆ wait() [1/2]
void System::ManualEvent::wait |
( |
| ) |
|
Blocks the current thread until event is set to signaled state.
◆ wait() [2/2]
bool System::ManualEvent::wait |
( |
unsigned int | msec | ) |
|
Blocks the current thread until event is set to signaled state or timeout.
- Returns
- true if event is set to signaled state; false if time is out.
◆ cond_
pthread_cond_t System::ManualEvent::cond_ |
|
protected |
◆ mutex_
pthread_mutex_t System::ManualEvent::mutex_ |
|
protected |
◆ signaled_
volatile int System::ManualEvent::signaled_ |
|
protected |