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

Method finished

src/core/impl/comp_node/impl_helper.cpp:13–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13bool CompNodeImplHelper::EventImplHelper::finished() {
14 if (m_finished)
15 return true;
16
17 MGB_LOCK_GUARD(m_mtx);
18
19 if (m_finished)
20 return true;
21 mgb_assert(m_recorded);
22 if (do_finished()) {
23 m_finished = true;
24 // m_recorded = false;
25 return true;
26 }
27 return false;
28}
29
30void CompNodeImplHelper::EventImplHelper::host_wait() {
31 if (sm_cpu_sync_level >= 2) {

Callers 8

monitor_eventsMethod · 0.80
try_get_valueMethod · 0.80
utility.cppFile · 0.80
rotateMethod · 0.80
TESTFunction · 0.80
elapsed_time_untilMethod · 0.80
process_one_taskMethod · 0.80
prof_implMethod · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64