| 8 | using namespace mgb::cg; |
| 9 | |
| 10 | void 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 | |
| 18 | void NormalExecEnv::resume_exec() { |
| 19 | #if MGB_HAVE_THREAD |