载入中...
搜索中...
未找到
eve::thread::Task类 参考
A job executed by a ThreadPool worker. Status strings (no enums): "pending" | "running" | "done" | "failed". 更多...
#include <Task.h>
Public 成员函数 | |
| Task (std::function< void()> fn) | |
| ~Task () | |
| std::string | getStatus () const |
| bool | isDone () const |
| bool | hasFailed () const |
| std::string | getError () const |
| void | wait () |
| Block until the task finishes (done or failed). | |
| void | run () |
友元 | |
| class | ThreadPool |
详细描述
A job executed by a ThreadPool worker. Status strings (no enums): "pending" | "running" | "done" | "failed".
构造及析构函数说明
◆ Task()
◆ ~Task()
|
default |
引用了 fn.
成员函数说明
◆ getError()
◆ getStatus()
◆ hasFailed()
◆ isDone()
◆ run()
◆ wait()
| void eve::thread::Task::wait | ( | ) |
友元及相关函数文档
◆ ThreadPool
|
friend |
该类的文档由以下文件生成: