| 107 | } |
| 108 | |
| 109 | void 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 | |
| 125 | void CGraphicsBackend_Threaded::RunBuffer(CCommandBuffer *pBuffer) |
| 126 | { |
nothing calls this directly
no test coverage detected