diff options
| author | Martin Ridgers <[email protected]> | 2021-09-15 09:04:58 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-09-15 09:04:58 +0200 |
| commit | 75a2c7015fcba553a5fdae17efcbb47bef8e2463 (patch) | |
| tree | abeef2b1b85168310c8e2bf9c72eeb94ed4db34c /zencore/thread.cpp | |
| parent | GetCurrentProcess() for non-Windows (diff) | |
| download | zen-75a2c7015fcba553a5fdae17efcbb47bef8e2463.tar.xz zen-75a2c7015fcba553a5fdae17efcbb47bef8e2463.zip | |
zen::Sleep() for Linux
Diffstat (limited to 'zencore/thread.cpp')
| -rw-r--r-- | zencore/thread.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 } ////////////////////////////////////////////////////////////////////////// |