c++ - 寻找类似于 greenrobot.EventBus 的 C++ EventBus(本地进程内消息代理)impl
问题描述
寻找一个(最好是 C++11 兼容的)库来进行进程内发布/订阅风格的通信。我之前(在 Java 中)使用过 greenrobot.EventBus 并且非常喜欢它。要求/很高兴拥有该库中可用的内容:
- 最好兼容 C++11
- 任何对象类型都可以用作消息
- 发布置顶消息:类型消息的订阅者将收到发布的消息,即使订阅发生在 T 发布之后。对于发布组件的配置非常有用。
- 选择将在其上处理给定订阅的“调度程序”(例如,在与消息发布者相同的线程上、在异步 IO 线程上、在单个 UI 线程上等)
到目前为止正在查看:
EnTT - 有一个事件处理系统:https ://github.com/skypjack/entt
这个老项目(SW Message Bus):https ://www.codeproject.com/Articles/723656/SW-Message-Bus
解决方案
推荐阅读
- reactjs - 从 React fetch 访问 Phoenix Framework http 请求
- android - 无法在 Google Play 管理中心上传应用程序包
- ios - 命令 PhaseScriptExecution Flutter 错误
- javascript - 如何选择
- sapb1 - 记录搜索后如何捕捉查找按钮事件和应用条件?
- python - 如何在 Veracode 静态扫描中扫描 python 脚本扫描?
- ruby - 我不能在 ruby 中划分这些变量 - 我该如何划分它们?
- javascript - 如何在 html ace 编辑器中制作侧边栏文件管理器
- sql - 通过从时间范围改组在特定范围内的列中输入时间
- wordpress - 保护公共 WP 插件中使用的 Google API 密钥