I'm trying to clear up some confusion I have. I stumbled over boost::asio::thread_pool and I thought that one could use to somehow automatically combine boost::asio::io_context
and boost::thread::thread_group
like is often suggested (here or here). It appears that this asio
-specific pool can be used to post
tasks to but, on the other hand, some networking types like resolver
need to be passed an object io_context
as a constructor parameter which thread_pool
isn't and doesn't derive from.
#c++