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

Function runTask

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

* 执行单个任务 * @param task */

Source from the content-addressed store, hash-verified

80 * @param task
81 */
82 CVoid runTask(const UTask& task) {
83 is_running_ = true;
84 task();
85 total_task_num_++;
86 is_running_ = false;
87 }
88
89
90 /**

Callers 3

processTaskFunction · 0.85
waitRunTaskFunction · 0.85
processTaskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected