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

Method ~UThreadPool

src/UtilsCtrl/ThreadPool/UThreadPool.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23UThreadPool::~UThreadPool() {
24 this->config_.monitor_enable_ = false; // 在析构的时候,才释放监控线程。先释放监控线程,再释放其他的线程
25 if (monitor_thread_.joinable()) {
26 monitor_thread_.join();
27 }
28
29 destroy();
30}
31
32
33CStatus UThreadPool::setConfig(const UThreadPoolConfig &config) {

Callers

nothing calls this directly

Calls 1

destroyFunction · 0.50

Tested by

no test coverage detected