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;
thread.htm
广告