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

Function runTasks

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

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

Source from the content-addressed store, hash-verified

92 * @param tasks
93 */
94 CVoid runTasks(const UTaskArr& tasks) {
95 is_running_ = true;
96 for (auto& task : tasks) {
97 task();
98 }
99 total_task_num_ += tasks.size();
100 is_running_ = false;
101 }
102
103
104 /**

Callers 2

processTasksFunction · 0.85
processTasksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected