信号与信号2 [英] Signals vs Signals2

查看:172
本文介绍了信号与信号2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



应用程序是多线程的,但执行信号处理的部分是单一的线程。



如果多线程不是问题,有没有理由更喜欢Boost.Signals2和Boost.Signal2?

解决方案

Boost.Signals现在已被弃用,应该使用Boost.Signals2(参见 v1.54文档


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?

解决方案

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

这篇关于信号与信号2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆