ANN: eventpp -- C++ library for event dispatcher and callback list

kbasm 2018-07-30 08:47:22
详情请见GitHub,中国人的开源库。

https://github.com/wqking/eventpp

eventpp is a C++ event library that provides tools that allow your application components to communicate with each other by dispatching events and listening to them. With eventpp you can implement signal/slot mechanism, or observer pattern, very easily.

* Supports both synchronous event dispatching and asynchronous event queue.
* Configurable and extensible with policies and mixins.
* Supports event filter via mixins.
* Supports nested event. During handling an event a listener can safely dispatch event, append/prepend/insert/remove other listeners.
* Thread safety. Supports multiple threading.
* Exception safety. Most operations guarantee strong exception safety.
* Well tested. Backed by unit tests.
* The EventQueue can process 10M events in 1 second (10K events per millisecond).
* The CallbackList can invoke 100M callbacks in 1 second (100K callbacks per millisecond).
* The CallbackList can add/remove 5M callbacks in 1 second (5K callbacks per millisecond).
* The listeners and events can be any type, no need to inherit from any base class.
* Header only, no source file, no need to build. No dependencies on other libraries.
* Requires C++ 11 (tested with MSVC 2017, MSVC 2015, MinGW (Msys) gcc 7.2, and Ubuntu gcc 5.4).
* Written in portable and standard C++, no hacks or quirks.
...全文
143 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

65,186

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧