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

Method UThreadPool

src/UtilsCtrl/ThreadPool/UThreadPool.cpp:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "UThreadPool.h"
10
11CGRAPH_NAMESPACE_BEGIN
12
13UThreadPool::UThreadPool(const CBool autoInit, const UThreadPoolConfig& config) noexcept {
14 cur_index_ = 0;
15 is_init_ = false;
16 this->setConfig(config); // setConfig 函数,用在 is_init_ 设定之后
17 if (autoInit) {
18 this->init();
19 }
20}
21
22
23UThreadPool::~UThreadPool() {

Callers

nothing calls this directly

Calls 2

setConfigMethod · 0.95
initMethod · 0.95

Tested by

no test coverage detected