MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / active

Method active

src/core/impl/utils/thread_pool.cpp:132–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 } while (no_finished);
131}
132void ThreadPool::active() {
133 if (!m_active) {
134 std::unique_lock<std::mutex> lock(m_mutex);
135 m_active = true;
136 m_cv.notify_all();
137 }
138}
139void ThreadPool::deactive() {
140 std::lock_guard<std::mutex> lock_task(m_mutex_task);
141 std::unique_lock<std::mutex> lock(m_mutex);

Callers 3

TESTFunction · 0.45
replayMethod · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36