Showing posts with label std::thread. Show all posts
Showing posts with label std::thread. Show all posts

Saturday, December 26, 2015

Reusing std::thread objects

Sometimes it's useful to reuse a std::thread object - from a resource and design point of view. This would seem trivial, but since the std::thread was designed as a single use object, there are a few tricks to reusing it.