std::thread::~thread
From cppreference.com
~thread();
|
(since C++11) | |
Destroys the thread object. If *this still has an associated running thread (i.e. joinable() == true), std::terminate() is called.