12 Sep
2010
12 Sep
'10
4:05 p.m.
On Sun, 12 Sep 2010 15:12:35 +0200, Ray Burkholder
Thanks for your reply! Do you know whether the thread of execution is allowed to call boost::thread::detach()? Then it could detach itself from the boost::thread object before it terminates and boost::thread::joinable() should work? I'm not sure though if boost::thread is thread-safe?
I want a worker thread to terminate if there is nothing to do. If there is something to do again and the worker thread has terminated I need to create a new one. Now I wonder if I can use boost::thread to detect whether the thread is running or not.
How about using boost::asio. It automatically deals with worker threads and such.
I need the worker thread within a Boost.Asio extension. ;) Boris