更新时间: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 也有一些线程设置。