Bases: winsys.core._WinSysObject
An event object is an interprocess (but not intermachine) synchronisation mechanism which allows one or more threads of control to wait on others. The most common configuration is given by the defaults: anonymous, not set initially, and automatically reset once set (ie only set for long enough to release any waiting threads and then reset. A common variant is a named event which can then be referred to easily by other processes without having to pass handles around. This is why the ipc.event() function reverses the order of parameters and takes the name first.
The Event class mimics Python’s Event objects which are in any case very close to the semantics of the underlying Windows object. For that reason, although clear() is used to reset the event, reset() is also provided as an alias, matching the Windows API.
An event is Truthful if it is currently set
Reset the event
Detect whether the event is currently set (by waiting without blocking)
Cause the event to set and reset immediately
Reset the event
Signal the event