mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 06:58:07 +00:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user