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

Method start_worker

src/core/impl/utils/thread.cpp:139–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void SCQueueSynchronizer::start_worker(std::thread thread) {
140 mgb_assert(!m_worker_started);
141 m_worker_started = true;
142 m_worker_thread = std::move(thread);
143}
144
145void SCQueueSynchronizer::producer_add() {
146 m_wait_finish_called = false;

Callers 3

TESTFunction · 0.45
allocate_taskMethod · 0.45

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.36