C++ terminate called without an active exception
When a thread object goes out of scope and it is in joinable state, the program is terminated. The Standard Committee had two other options for the destructor of a joinable thread. It could quietly join — but join might never return if the thread is stuck. Or it could detach the thread (a detached … Read more