Merge pull request #312 from 4jcraft/refactor/replace-sleep

refactor: replace win32 thread sleeping and yielding with `std::thread` primitives
This commit is contained in:
Tropical
2026-03-27 18:47:47 -05:00
committed by GitHub
24 changed files with 156 additions and 89 deletions

View File

@@ -1,3 +1,6 @@
#include <thread>
#include <chrono>
#include "../Platform/stdafx.h"
#include "ServerLevel.h"
#include "../MinecraftServer.h"
@@ -1570,7 +1573,7 @@ int ServerLevel::runUpdate(void* lpParam) {
}
PIXEndNamedEvent();
#ifdef __PS3__
Sleep(10);
std::this_thread::sleep_for(std::chrono::milliseconds(10));
#endif //__PS3__
}