Overview of eventpp
mastereventpp is a mature, production-ready C++ library designed for implementing callbacks, event dispatchers, and event queues. It provides the building blocks for signal and slot mechanisms, publisher/subscriber patterns, and the observer pattern.
Key features include:
- Synchronous & Asynchronous: Supports both immediate synchronous dispatching and asynchronous event queuing.
- Robustness: Supports nested events (listeners can safely modify the listener list during dispatch), thread safety for multi-threading, and strong exception safety.
- Performance: Highly optimized for high-throughput scenarios (e.g.,
CallbackListcan invoke 100M callbacks per second). - Flexibility: Header-only, no dependencies, and requires only C++11. Listeners and events can be any type without needing a common base class.