From 75a2c7015fcba553a5fdae17efcbb47bef8e2463 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Wed, 15 Sep 2021 09:04:58 +0200 Subject: zen::Sleep() for Linux --- zencore/thread.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zencore/thread.cpp') diff --git a/zencore/thread.cpp b/zencore/thread.cpp index ef04ce8a4..598466bb4 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -283,7 +283,11 @@ GetCurrentProcessId() void Sleep(int ms) { +#if ZEN_PLATFORM_WINDOWS ::Sleep(ms); +#else + usleep(ms * 1000U); +#endif } ////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3