pthread -> std::thread (5/7) - Replace sdl semaphore with condition variable

This removes a dependency on the SDL_Thread header.

Differential Revision: https://code.wildfiregames.com/D1921
This was SVN commit r22772.
This commit is contained in:
wraitii
2019-08-24 11:26:58 +00:00
parent b429d0ce03
commit 62dd922bc0
5 changed files with 39 additions and 48 deletions
+1 -2
View File
@@ -341,8 +341,7 @@ public:
if (m_TextureConverter.Poll(textureOut, dest, ok))
return ok;
// Spin-loop is dumb but it works okay for now
SDL_Delay(0);
std::this_thread::sleep_for(std::chrono::microseconds(1));
}
}