get_id 函数

唯一标识当前执行线程。

thread::id this_thread::get_id() _NOEXCEPT;

返回值

唯一标识当前执行线程 thread::id 类型的对象。

要求

标头: 线程

命名空间: std

请参见

参考

<thread>

其他资源

C++ 标准库头文件