任务信息
更多...
#include <thread_pool.hpp>
任务信息
存储任务的元数据,包括状态、时间戳、错误信息等。
在文件 thread_pool.hpp 第 228 行定义.
◆ status
任务状态枚举
| 枚举值 |
|---|
| pending | 等待执行
|
| running | 正在执行
|
| completed | 已完成
|
| failed | 执行失败
|
在文件 thread_pool.hpp 第 233 行定义.
◆ task_info()
| neforce::task_info::task_info |
( |
const uint64_t | task_id, |
|
|
const priority_type | priority ) |
|
inlineexplicit |
◆ exec_time()
| int64_t neforce::task_info::exec_time |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ is_finished()
| bool neforce::task_info::is_finished |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
该结构体的文档由以下文件生成: