Destroys the thread object.
If *this has an associated thread (joinable() == true), std::terminate() is called.
A thread object does not have an associated thread (and is safe to destroy) after
terminate called without an active exception
 See also
| if the thread is joinable, then a stop is requested and the thread joins |
(public member function of