Attach lightweight C++11 event emitting and handling capabilities to your existing C++ classes.
Attach lightweight C++11 event emitting and handling capabilities to your existing C++ classes.
DefineEventEmitter
macro to use methods such as emitChatMessage
, onChatMessage
or use EventEmitter<Args>
template to define an event emitting member with methods on
, trigger
.trigger
.sizeof(void*)
overhead for non-initialized emitter and 3 * sizeof(void*)
per each attached handler.trigger
and run when called runDeferred()
or runAllDeferred()
. Useful when a different thread is a producer of events but you want the handlers to run in another thread.defer
instead of trigger
.std::future
, adding async handlers and general thread safety.std::string
.