std::thread::~thread

< cpp‎ | thread‎ | thread
 
 
线程支持库
线程
(C++11)
(C++20)
(C++20)
this_thread 命名空间
(C++11)
(C++11)
(C++11)
互斥
(C++11)
通用锁管理
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
条件变量
(C++11)
信号量
闩与屏障
(C++20)
(C++20)
future
(C++11)
(C++11)
(C++11)
(C++11)
 
 
~thread();
(C++11 起)

销毁 thread 对象。

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

注意

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