std::thread::~thread

From Cppreference

Jump to: navigation, search
~thread();
(C++11 feature)

Destroys the thread object. If *this still has an associated running thread (i.e. joinable() == true), std::terminate() is called.