Signals vs Signals2

ぐ巨炮叔叔 提交于 2019-12-06 18:52:38

问题


I have application that may benefit from using one of boost's signals libraries over a homegrown solution.

The application is multithreaded but the part that does the signal processing is single threaded.

Is there any reason to prefer Boost.Signals2 over Boost.Signal if multithreading is not an issue?


回答1:


Boost.Signals is now deprecated, and Boost.Signals2 should be used instead (see v1.54 docs)




回答2:


Originally, if all the signals and slots were in the same thread, boost.signals was just fine. However, it is no longer being maintained -- the documentation suggests using signals2 in all new code.



来源:https://stackoverflow.com/questions/7969894/signals-vs-signals2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!