NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
worker_context结构体 参考

工作线程上下文 更多...

#include <thread_pool.hpp>

Public 类型

using id_type = uint32_t
 线程ID类型

Public 属性

local_queue queue
 本地任务队列
id_type id {0}
 线程ID
atomic< bool > is_stealing {false}
 是否正在执行窃取操作
size_t consecutive_idle_count = 0
 连续空闲次数

详细描述

工作线程上下文

存储每个工作线程的本地状态信息。

在文件 thread_pool.hpp201 行定义.


该结构体的文档由以下文件生成: