pooled_event [function]
pooled_event( object, string name, bool signaled = false )
Create a pooled event (named event, in table)
- This object can be used to stop a thread. See end_on for more info.
- If the event is found in the object as a property by the given name, that event is returned instead, without modification.
- Otherwise, a new event is created and registered to the specified object as a property with the given name.
- Event is initialized to the state specified by
signaled
.
- This object consists of one property -
bool signaled
. It can be modified to change the state of the event.