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

Function processTask

src/UtilsCtrl/ThreadPool/Thread/UThreadPrimary.h:102–109  ·  view source on GitHub ↗

* 获取并执行任务 * @return */

Source from the content-addressed store, hash-verified

100 * @return
101 */
102 CVoid processTask() {
103 UTask task;
104 if (popTask(task) || popPoolTask(task) || stealTask(task)) {
105 runTask(task);
106 } else {
107 std::this_thread::yield();
108 }
109 }
110
111
112 /**

Callers 1

runFunction · 0.70

Calls 4

popTaskFunction · 0.85
popPoolTaskFunction · 0.85
stealTaskFunction · 0.85
runTaskFunction · 0.85

Tested by

no test coverage detected