Sets the state of the event to signaled, allowing one or more waiting threads to proceed.
- Returns
- true if the operation succeeds; otherwise, false.
- Exceptions
-
- Warning
- There is no guarantee that every call to the xtd::threading::auto_reset_event::set method will release a thread. If two calls are too close together, so that the second call occurs before a thread has been released, only one thread is released. It's as if the second call did not happen. Also, if xtd::threading::auto_reset_event::set is called when there are no threads waiting and the xtd::threading::auto_reset_event is already signaled, the call has no effect.
- Examples
- event_wait_handle.cpp.