Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

Thread Pool

License

A simple, but functional thread pool

Example usage:

You add work/tasks to the thread pool like so:

p.add_work(function_pointer);

and you start the processing with start:

p.start();

you can add tasks at any time, and you can stop at any time:

p.stop();

Stop will be called automatically when the thread pool is destroyed. Stop and the destructor will wait for the threads to complete before exiting.

Thread Pool defaults the worker count to the number of CPUs available on the machine, or you can specify a worker count when constructed.

About

Thread Pool Manager in C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published