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

Method pause_exec

src/core/impl/graph/normal_exec_env.cpp:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8using namespace mgb::cg;
9
10void NormalExecEnv::pause_exec() {
11#if MGB_HAVE_THREAD
12 m_exec_paused.store(true, std::memory_order_relaxed);
13#else
14 mgb_throw(InternalError, "pause_exec() without thread support");
15#endif
16}
17
18void NormalExecEnv::resume_exec() {
19#if MGB_HAVE_THREAD

Callers 2

TESTFunction · 0.45
defragMethod · 0.45

Calls 1

storeMethod · 0.45

Tested by 1

TESTFunction · 0.36