阅读背景:

如何在不同线程上发布工作时将信号连接到boost :: asio :: io_service?

来源:互联网 

I'm trying to use a boost::lockfree queue to manage tasks. These tasks retrieve data and would be processed on a worker thread. Once data is retrieved, a signal should be sent to the main thread with the data. The worker thread is spawned at the start of the application and just keeps polling the queue. I'm new to Boost::Asio but from my research, it seems to be the best mechanism for sending signals between threads.I'm trying to use a boost::lockfree queue to ma




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: