Library providing a thread pool.
Mode support:
- allocate everything at once;
- incremental allocate.
In the source code directory run:
-
mkdir -p build && pushd build
-
for static lib:
cmake -S ../
-
for shared lib:
cmake -S ../ -BUILD_SHARED_LIBS:BOOL=true
-
make --build .
-
popd
ThreadPool thread_pool(10, 2);
thread_pool.enqueue([&]{do_work();});
This software is distributed under MIT license.