13 Jun
2015
13 Jun
'15
7:32 p.m.
Boost.ASIO's io_service provides an excellent threadpool. It's a little mutex-happy but most applications won't care about that.
Subtasks can simply be posted to the io_service and they will complete asynchronously on the same thread or any other in the threadpool.
You can use callbacks, futures, or coroutines to collect the results of the subtasks.
Thanks, I will look at that. At first boost.asio looks rather difficult. Cheers, Frédéric