C++ 线程库 - ID


描述

thread::get_id 和 this_thread::get_id 返回该类型的值来标识线程。

宣言

以下是 std::thread::id 的声明。

class thread::id;

C++11

class thread::id;

参数

没有任何

返回值

没有任何

非成员函数重载

bool operator== (thread::id lhs, thread::id rhs) noexcept;
bool operator!= (thread::id lhs, thread::id rhs) noexcept;
bool operator< (thread::id lhs, thread::id rhs) noexcept;
bool operator>= (thread::id lhs, thread::id rhs) noexcept;
bool operator> (thread::id lhs, thread::id rhs) noexcept;
bool operator>= (thread::id lhs, thread::id rhs) noexcept;
线程.htm