Toast Engine
Loading...
Searching...
No Matches
event::EventSystem::EventInfo Struct Reference

Per-type callback registry. More...

#include <event.hpp>

Public Attributes

std::mutex mutex
std::multimap< char, void *, std::greater<> > callbacks
std::vector< void * > processing
bool cached = false

Detailed Description

Per-type callback registry.

callbacks is a priority-sorted multimap from priority char to type-erased function pointer. processing is a flat snapshot rebuilt from callbacks when cached is false; rebuilding on-demand lets subscribers add or remove callbacks from within a callback without invalidating iteration.


The documentation for this struct was generated from the following file: