refactor: remove usage of win32 Sleep function for this_thread::sleep_for

This commit is contained in:
Tropical
2026-03-25 19:12:11 -05:00
parent f4a2db1252
commit 8e94b763a7
23 changed files with 144 additions and 78 deletions

View File

@@ -1,3 +1,6 @@
#include <thread>
#include <chrono>
#include "../../Platform/stdafx.h"
#include "../../Util/StringHelpers.h"
#include "../../Util/PortableFileIO.h"
@@ -1298,7 +1301,7 @@ void ConsoleSaveFileSplit::Flush(bool autosave, bool updateThumbnail) {
#endif
app.DebugPrintf("Flush wait\n");
Sleep(10);
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
finalizeWrite();