USU-Robosub / Poseidon

USU's third-generation autonomous submarine
http://usub.cs.usu.edu
17 stars 0 forks source link

Dan develop #245

Open danielmortensen opened 7 years ago

danielmortensen commented 7 years ago

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.