An event class that allows blocking waits from an arbitrary number of threads that are then woken when the event is signalled. Additional calls to wait while the event is signalled will return immediately. If there are no waiting threads, the event can be reset to an unsignalled state.
More...
An event class that allows blocking waits from an arbitrary number of threads that are then woken when the event is signalled. Additional calls to wait while the event is signalled will return immediately. If there are no waiting threads, the event can be reset to an unsignalled state.
◆ manual_reset_event() [1/3]
| arene::base::manual_reset_event::manual_reset_event |
( |
| ) |
|
|
constexprdefaultnoexcept |
Initialize the event to an unsignalled state.
◆ ~manual_reset_event()
| arene::base::manual_reset_event::~manual_reset_event |
( |
| ) |
|
|
inline |
Destroy the event; destroy the semaphore if it is initialized.
◆ manual_reset_event() [2/3]
◆ manual_reset_event() [3/3]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ reset()
| void arene::base::manual_reset_event::reset |
( |
| ) |
|
|
inline |
Reset the event to an unsignalled state.
- Precondition
- There must be no threads blocked in
wait.
- Exceptions
-
| std::system_error | on error. |
◆ signal()
| void arene::base::manual_reset_event::signal |
( |
| ) |
|
|
inline |
Signal the event and wake any blocked waiters.
- Exceptions
-
| std::system_error | on error. |
◆ wait()
| void arene::base::manual_reset_event::wait |
( |
| ) |
const |
|
inline |
Wait for the event to be signalled. Return immediately if it is already signalled.
- Exceptions
-
| std::system_error | on error. |
| std::system_error | if an error occurs in the underlying OS facilities |
The documentation for this class was generated from the following file: