|
Toast Engine
|
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 |
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.