|
dl
|
多线程任务 更多...
#include <dl_thread_task.h>
Public 类型 | |
| using | FnDoTask = std::function<void(const T&)> |
Public 成员函数 | |
| void | Init (FnDoTask fn_do_task, QueueMode mode=QueueMode::FIFO, size_t thread_num=(size_t) std::thread::hardware_concurrency()) |
| void | AddTask (const T &task) |
| 添加任务 | |
| void | ClearTask () |
| 清除所有任务 | |
| void | Wait () |
| 等待任务完成 | |
| ~MultiThreadTask () | |
| using dl::MultiThreadTask< T >::FnDoTask = std::function<void(const T&)> |
在文件 dl_thread_task.h 第 33 行定义.
|
inline |
在文件 dl_thread_task.h 第 98 行定义.
|
inline |
添加任务
在文件 dl_thread_task.h 第 58 行定义.
|
inline |
清除所有任务
在文件 dl_thread_task.h 第 72 行定义.
|
inline |
在文件 dl_thread_task.h 第 35 行定义.
|
inline |