v0.1.0 Released!
Event-Driven Architecture
for Modern C++
Build high-performance, thread-safe applications with an elegant event emission system designed for scale.
Lock-Free Architecture
Utilizes atomic operations and concurrent queues
High throughput
Optimized for high amounts of events emission with minimal overhead
Cross-Thread Safety
Seamless event passing between threads with guaranteed delivery
Simple
Leverages std::any for arbitrary-type events
Benchmark Results
61,622,600
Events/sec
Tested on AMD Ryzen 9 5950X (32 threads)
// Basic Usage Example
#include "emittra/emittra.hpp"
emittra::Emitter emitter;
emitter.on("update", [](auto& ctx, auto args) {
auto [delta] = ctx.unpack<double>(args);
std::cout << "Update: " << delta << std::endl;
});
emitter.emit("update", 16.67);