#include <evo/event.h>
Event base type used with EventQueue.
- An event is instantiated with C++ "new" operator, then is added to an EventQueue or EventThreadPool for processing (which takes ownership of the pointer)
- The event processor calls operator()() to invoke the event, which returns whether the event is finished, and if true the processor frees the event object
◆ Event()
◆ ~Event()
◆ operator()()
virtual bool operator() |
( |
| ) |
|
|
pure virtual |
Event function.
- This is called by EventQueue to process the event
- The return value identifies whether the caller should free this object
- Caution: This must not throw any exception
- Returns
- Whether event is finished and ready to be freed, false if ownership was transferred elsewhere
Implemented in EventLambda.
The documentation for this struct was generated from the following file: