MCPcopy Create free account
hub / github.com/ddnet/ddnet / WaitForIdle

Method WaitForIdle

src/engine/client/backend_sdl.cpp:173–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void CGraphicsBackend_Threaded::WaitForIdle()
174{
175#if !defined(CONF_PLATFORM_EMSCRIPTEN)
176 std::unique_lock<std::mutex> Lock(m_BufferSwapMutex);
177 m_BufferSwapCond.wait(Lock, [this]() { return m_pBuffer == nullptr; });
178#endif
179}
180
181void CGraphicsBackend_Threaded::ProcessError(const SGfxErrorContainer &Error)
182{

Callers 3

StartMethod · 0.45
StopMethod · 0.45
StartVideoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected