MCPcopy Create free account
hub / github.com/BabylonJS/BabylonNative / Suspend

Method Suspend

Core/AppRuntime/Source/WorkQueue.cpp:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 }
30
31 void WorkQueue::Suspend()
32 {
33 // Lock m_blockingTickMutex as well as m_suspendMutex to ensure we do not
34 // accidentally suspend in the middle of a blocking tick.
35 std::scoped_lock<std::mutex> lockTicking(m_blockingTickMutex);
36 std::scoped_lock<std::mutex> lockSuspension(m_suspendMutex);
37 m_suspended = true;
38 m_suspendConditionVariable.notify_one();
39 }
40
41 void WorkQueue::Resume()
42 {

Callers 4

WndProcFunction · 0.45
App.cppFile · 0.45
WndProcFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected