MCPcopy Create free account
hub / github.com/ChunelFeng/CThreadPool / runTasks

Function runTasks

src/UtilsCtrl/ThreadPool/Thread/UThreadBase.h:99–106  ·  view source on GitHub ↗

* 批量执行任务 * @param tasks */

Source from the content-addressed store, hash-verified

97 * @param tasks
98 */
99 CVoid runTasks(UTaskArr& tasks) {
100 is_running_ = true;
101 for (auto& task : tasks) {
102 task();
103 }
104 total_task_num_ += tasks.size();
105 is_running_ = false;
106 }
107
108
109 /**

Callers 2

processTasksFunction · 0.85
processTasksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected