mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-25 22:36:00 +00:00
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:
@@ -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__
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user