|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
线程管理类 更多...
#include "NeForce/core/async/this_thread.hpp"#include "NeForce/core/exception/exception.hpp"#include "NeForce/core/functional/apply.hpp"#include "NeForce/core/memory/unique_ptr.hpp"类 | |
| struct | thread_exception |
| 线程操作异常 更多... | |
| class | thread |
| 线程类 更多... | |
| struct | thread::id |
| 线程唯一标识符类 更多... | |
| struct | thread::hook |
| 线程生命周期钩子 更多... | |
函数 | |
| NEFORCE_ALWAYS_INLINE_INLINE thread::id | id () noexcept |
| 获取当前线程标识符 | |
| NEFORCE_ALWAYS_INLINE_INLINE thread::native_handle_type | handle () noexcept |
| 获取当前线程句柄 | |
| NEFORCE_ALWAYS_INLINE_INLINE bool | name (char *buffer, size_t size) |
| 获取当前线程名称 | |
| NEFORCE_ALWAYS_INLINE_INLINE bool | set_name (const char *name) |
| 设置当前线程名称 | |