Boost logo

Boost Users :

Subject: [Boost-users] boost::thread destructor and detach()
From: Eric J. Holtman (eric_at_[hidden])
Date: 2010-03-30 12:35:55


It looks like the new C++ standard threading library
is going to call terminate() on a thread if it's being
destructed, and has not been detached or joined.

Is boost::thread going to change to emulate that
behavior? (Currently, it calls detach(), not terminate()).

I hadn't been calling detach () in my programs
when I was spinning off a thread that I didn't
care about joining later. Should I be doing that,
just so my code works with either library?


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