Using boost::asio thread pool for general purpose tasks

前端 未结 3 1941
执念已碎
执念已碎 2020-12-05 12:12

In this blog I found a pretty neat example on how to create a simple thread pool using boost::asio. I basically want to use it like this:

#include 

        
3条回答
  •  庸人自扰
    2020-12-05 12:52

    I don't see any reason not to do things this way. As a benefit, you can use things like deadline timers which are built on top of boost::asio.

提交回复
热议问题