
8 May
2007
8 May
'07
2:09 p.m.
On Mon, 07 May 2007 20:06:39 +0300, "Yuval Ronen" <ronen_yuval@yahoo.com> said:
At first sight it seems my dispatcher classes have the benefit of being able to wait on multiple tasks (handlers) being executes concurrently. Is that true? If so, do you see that as an important advantage?
I forgot to add that, with asio::io_service, you can wait for all concurrently executing tasks to finish by simply waiting for the io_service::run() call to exit. This is an important feature when trying to code a clean shutdown of the (chains of) tasks in a thread pool. Cheers, Chris