Creating a thread pool using boost

后端 未结 2 638
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 04:39

Is it possible to create a thread pool using boost\'s thread? i was looking all over boost\'s libs and I couldn\'t find a thread pool manager (or something like that)... Is

2条回答
  •  生来不讨喜
    2020-12-01 05:30

    I know an answer has been accepted, if you need this right now, and you can't be bothered to write your own thread pool, you could try using boost asio io_service with a concurrency hint (i.e. how many threads it should run) and then post() stuff to this io_service... just an idea..

提交回复
热议问题