且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在C ++中的简单线程池

更新时间:2022-05-01 23:00:41

查看英特尔的线程构建块。我不知道图书馆符合你简单的标准,但它似乎是非常周到和彻底的。我认为如果你想在C ++中进行线程化,那么值得努力学习。

Look at Intel's Thread Building Blocks. I don't know how well that library meets your "simple" criteria, but it seems to be very well thought-out and thorough. I would think that it would be worth the effort to learn if you want to do threading in C++.

Boost 也有一些线程设置。