阅读背景:

等待完成异步操作

来源:互联网 

HI all!

大家好!

There is an io_service object, methods run() works in a thread pool. There are set of classes, which make async write using ip::tcp::socket. I need to block destructor of this kind of class, until his tasks live in the io_service's queue. In example, to add method join(). But what the reason to block the destructor?There is an io_service object,




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

分享到: