Overview of CTPL Thread Pool Library
masterCTPL is a modern, efficient, header-only C++ thread pool library designed for parallel job execution. It minimizes the overhead of creating and destroying threads and allows limiting the number of simultaneous parallel jobs.
Key features include:
- Header-only: No need to compile a binary library.
- Flexible API: Supports pushing lambdas, functors, functions, and
std::bindresults. - Dynamic Control: Ability to query idle threads and resize the pool dynamically.
- Standard C++ Integration: Uses standard C++ futures to retrieve return values and exceptions from jobs.
- Variadic Parameters: Supports jobs with a variadic number of parameters, automatically providing the index of the thread running the object.
- License: Apache License.