Comment by jb1991

3 years ago

And in C++ can also use this dead-simple header file for a nice high-level, modern threadpool using function objects (lambdas) for very easy parallelization of arbitrary tasks: https://github.com/progschj/ThreadPool

Simple bit of code for a simple threadpool.

I spotted a bug in it though which may manifest itself depending on platform.

  • What did you find? The code is quite widely used, and I’ve also used it extensively for years without any problems.