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

Method StopProcessor

src/engine/client/backend_sdl.cpp:109–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void CGraphicsBackend_Threaded::StopProcessor()
110{
111 dbg_assert(!m_Shutdown, "Processor was already shut down.");
112 m_Shutdown = true;
113#if defined(CONF_PLATFORM_EMSCRIPTEN)
114 m_Warning = m_pProcessor->GetWarning();
115#else
116 {
117 std::unique_lock<std::mutex> Lock(m_BufferSwapMutex);
118 m_Warning = m_pProcessor->GetWarning();
119 m_BufferSwapCond.notify_all();
120 }
121 thread_wait(m_pThread);
122#endif
123}
124
125void CGraphicsBackend_Threaded::RunBuffer(CCommandBuffer *pBuffer)
126{

Callers

nothing calls this directly

Calls 2

thread_waitFunction · 0.85
GetWarningMethod · 0.80

Tested by

no test coverage detected