
21 Apr
2012
21 Apr
'12
10:54 p.m.
On 15.04.2012 13:12, Vicente J. Botet Escriba wrote:
Let me know if there is an interest to resurecting this project. I will comeback to as soon as possible to check it works yet and adapt it to the new standard interface.
Usually joining a thread is not enough. Sometimes, you need to tell the thread that it should quit. As long as we don't have standard way to tell the thread that it should quit (something like PostThreadMessage(WM_QUIT)), RAII-joiner is only applicable for threads that do some computations and quit. Maybe we could have RAII-wrapper that destroys asio::io_service::work and then joins the thread?