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

Function reset

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

* 清空所有任务内容 */

Source from the content-addressed store, hash-verified

110 * 清空所有任务内容
111 */
112 CVoid reset() {
113 done_ = false;
114 if (thread_.joinable()) {
115 thread_.join(); // 等待线程结束
116 }
117 is_init_ = false;
118 is_running_ = false;
119 total_task_num_ = 0;
120 }
121
122
123 /**

Callers 2

~UThreadBaseFunction · 0.85
destroyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected