C++ 事件框架:EventBus

jopen 11年前

EventBus 是一个为 C++11 编写的轻量级同步事件框架。

示例代码:

Player player1("Player 1"); // Player instance with a name  PlayerChatEvent e(*this, player1, "This is a chat message"); // Create the event object  EventBus::FireEvent(e); // Fire the event

项目主页:http://www.open-open.com/lib/view/home/1398158925468