MCPcopy Create free account
hub / github.com/chen3feng/toft / AnyThreadRunning

Method AnyThreadRunning

system/threading/thread_pool.cpp:168–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168bool ThreadPool::AnyThreadRunning() const {
169 for (size_t i = 0; i < m_num_threads; ++i) {
170 if (m_thread_contexts[i].thread->IsAlive())
171 return true;
172 }
173 return false;
174}
175
176void ThreadPool::Terminate() {
177 MutexLocker lock(&m_exit_lock);

Callers

nothing calls this directly

Calls 1

IsAliveMethod · 0.45

Tested by

no test coverage detected