And*_*rei 6 c++ events boost
Boost不提供单线程事件驱动模型,这在Unix之前普遍存在于pthreads - mainloop +"callbacks"之外,是吗?
例如,如果我想在单线程应用程序中使用boost :: message_queue,并将其与计时器和其他异步事件(mainloop)混合使用,那么boost不支持它,我是对的吗?
seh*_*ehe 10
我看看
如果要将两者结合使用,请务必使用Boost Signals2(因为它支持线程).
Tob*_*obu 6
boost::interprocess::message_queue专为多处理而设计.在单线程进程中,您始终可以使用std::queue.
boost::interprocess::message_queue
std::queue
归档时间:
14 年,11 月 前
查看次数:
3526 次
最近记录:
12 年,10 月 前