Re:Goals and Priorities for C++
by gpderetta on Friday May 22, 2020 @09:32AM
(#23271849)
> std::thread crashing in destructor when the user doesn't call std::thread::join, nor std::thread::detach.
this has been 'fixed' with jthread. FWIW I think it is a mistake, blocking in a destructor is can easily lead to deadlocks (I have first hand experience, it is not just a theoretical issue). Detaching is not an option either.
this has been 'fixed' with jthread. FWIW I think it is a mistake, blocking in a destructor is can easily lead to deadlocks (I have first hand experience, it is not just a theoretical issue). Detaching is not an option either.