std::thread::~thread

From cppreference.com
< cpp‎ | thread‎ | thread
~thread();
(since C++11)

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