std::thread::~thread

< cpp‎ | thread‎ | thread
~thread();
(C++11 起)

销毁 thread 对象。

*this 拥有关联线程( joinable() == true ),则调用 std::terminate()

注解

在下列操作后 thread 对象无关联的线程(从而可安全销毁)