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

Method ~UThreadPool

src/UtilsCtrl/ThreadPool/UThreadPool.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30
31UThreadPool::~UThreadPool() {
32 is_monitor_ = false; // 在析构的时候,才释放监控线程。先释放监控线程,再释放其他的线程
33 if (monitor_thread_.joinable()) {
34 monitor_thread_.join();
35 }
36
37 destroy();
38}
39
40
41CStatus UThreadPool::setConfig(const UThreadPoolConfig &config) {

Callers

nothing calls this directly

Calls 1

destroyFunction · 0.85

Tested by

no test coverage detected