资 源 简 介
This project has been moved to https://github.com/metherealone/threadpool11
Cross-platform thread pool implementation using C++11 features.
You can find the VERY EASY API documentation on this wiki page.
This project has been initially developed in just a few hours of free time as I could not find a simple lightweight thread pooling library for my needs.
This thread-pool implementation assumes that workload takes a considerable time to process. It is not tuned towards fast work posting (on the other hand, it takes as low as 2 seconds to post 1 million work s to the pool on an x86-64 x2 3.4 GHz, so it is pretty fast enough. Yet the test case is in a for loop, a real case would relatively be more performant due to less mutex interceptions).
I will be glad to hear about the suggestions/ideas you have about the project, via the 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报