cpp/thread/thread/~thread

Destroys the thread object.

If has an associated thread,  is called.