|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
线程唯一标识符类 更多...
#include <thread.hpp>
Public 类型 | |
| using | native_id_type |
| 系统线程标识符类型 | |
Public 成员函数 | |
| constexpr | id () noexcept=default |
| 默认构造函数 | |
| constexpr | id (const native_id_type id) noexcept |
| 从原生ID构造 | |
| constexpr native_id_type | native_handle () const noexcept |
| 获取原生线程ID | |
| size_t | to_hash () const noexcept |
| 计算哈希值 | |
| bool | operator== (const id &rhs) const noexcept |
| 等于比较运算符 | |
| bool | operator!= (const id &rhs) const noexcept |
| 不等于比较运算符 | |
| Public 成员函数 继承自 neforce::ihashable< id > | |
| constexpr size_t | to_ihash () const noexcept(noexcept(derived().to_hash())) |
| 获取对象的哈希值 | |
|
inlineexplicitconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |