boost::thread只关心单个的线程,没有数目限制(只受限于可用的内存和句柄数)
https://github.com/boostorg/thread/blob/develop/include/boost/thread/detail/thread.hpp
boost::thread_group内部有private list存放有每个thread
https://github.com/boostorg/thread/blob/develop/include/boost/thread/detail/thread_group.hpp
boost::basic_thread_pool内部有private vector存放有每个thread
https://github.com/boostorg/thread/blob/develop/include/boost/thread/executors/basic_thread_pool.hpp
【 在 trabalhar 的大作中提到: 】
: 我查了 boost也看了 没有地方能看出来
--
FROM 125.35.121.*