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

Function run

src/UtilsCtrl/ThreadPool/Thread/UThreadSecondary.h:61–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60
61 CStatus run() override {
62 CGRAPH_FUNCTION_BEGIN
63 CGRAPH_ASSERT_INIT(true)
64 CGRAPH_ASSERT_NOT_NULL(config_)
65
66 if (config_->calcBatchTaskRatio()) {
67 while (done_) {
68 processTasks(); // 批量任务获取执行接口
69 }
70 } else {
71 while (done_) {
72 processTask(); // 单个任务获取执行接口
73 }
74 }
75
76 CGRAPH_FUNCTION_END
77 }
78
79
80 /**

Callers

nothing calls this directly

Calls 2

processTasksFunction · 0.70
processTaskFunction · 0.70

Tested by

no test coverage detected