【发布时间】:2011-04-28 15:17:41
【问题描述】:
在生产代码中使用 C++ 的线程池的良好开源实现是什么(类似于 boost)?
请提供您自己的示例代码或示例代码用法的链接。
【问题讨论】:
-
boost 有什么问题?
-
@David - Boost 中没有内置线程池,是吗?
-
@Steve Townsend:是的,对不起......我想我记得在 boost 中的一个,但它并没有真正包括在内(尚未被接受)。 threadpool.sourceforge.net/index.html中有一个可用的
-
这个 FOSS 项目是我尝试创建一个线程池库,如果你想看看。 -> code.google.com/p/threadpool11
标签: c++ multithreading boost threadpool boost-thread