English 中文(简体)
放弃完成仓储业务
原标题:Waiting for completing of asynchronous operations

所有人!

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?

最佳回答
问题回答




相关问题
Boost cheat sheet [closed]

I just had a hell of a project doing simple operations on C++, then when I was almost completely done with the project I found out that all this stupid tasks required just a portion of boost. This was ...

Weighted random numbers

I m trying to implement a weighted random numbers. I m currently just banging my head against the wall and cannot figure this out. In my project (Hold em hand-ranges, subjective all-in equity ...

std::locale breakage on MacOS 10.6 with LANG=en_US.UTF-8

I have a C++ application that I am porting to MacOSX (specifically, 10.6). The app makes heavy use of the C++ standard library and boost. I recently observed some breakage in the app that I m having ...

boost::thread causing small event handle leak?

I m debugging this database project. It wraps access to SQLite for a higher level application. It s designed to run asynchronously, that is, it has methods like ExecuteRequestAsync() and ...

Change command used by bjam when installing C++ boost library

I am trying to make the installation of boost library a little bit slower, because there too many calls to gcc in a short time, which increase my CPU temperature to its limit and crashes the system. ...

Should I use a const reference or a boost::shared_ptr?

I have created some C++ classes to model a Solitaire game as a learning exercise. I have classes for the SolitaireGame, a CardStack (one of the 10 piles of cards on the board ) and a Card. My ...

热门标签