所有人!
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?