wait_event — Lock an event synchronization object.
wait_event( : : EventHandle : )
wait_event waits on the event object passed in EventHandle until it is signaled. When the event is signaled, wait_event succeeds and sets the state automatically to nonsignaled again. The kind of wait depends on the event's attributes set during the creation in create_event.
Event synchronization object.
If the event handle is valid, the operator wait_event returns 2 (H_MSG_TRUE). If necessary, an exception is raised.