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

Function processTasks

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

* 批量执行n个任务 */

Source from the content-addressed store, hash-verified

94 * 批量执行n个任务
95 */
96 CVoid processTasks() {
97 UTaskArr tasks;
98 if (popPoolTask(tasks)) {
99 runTasks(tasks);
100 } else {
101 std::this_thread::yield();
102 }
103 }
104
105
106 /**

Callers 1

runFunction · 0.70

Calls 2

popPoolTaskFunction · 0.85
runTasksFunction · 0.85

Tested by

no test coverage detected