Boost logo

Boost Users :

Subject: [Boost-users] [thread] boost::thread automatically detached when thread terminates?
From: Boris Schaeling (boris_at_[hidden])
Date: 2010-09-11 17:00:56


Is a boost::thread object automatically detached when a thread terminates?

I read in the Boost.Thread 1.44 documentation: "If the thread of execution
represented by the boost::thread object has already completed, or the
boost::thread object represents Not-a-Thread, then join() returns
immediately."

Is it really required to call join() or timed_join()? Or can I also call
joinable() which would return false then?

Boris


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net