Skip to content

Conversation

@danielmortensen
Copy link

fixes #244
This object creates an arbitrary number of threads and places tasks on the threads when instructred by the main function. The enqueue function takes a std::function<void()> object and executes it. If an object function is desired, then it must be wrapped in a lambda. The destructor will wait for the functions to end and then join all the child threads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make thread pool

4 participants