diff options
Diffstat (limited to 'src/rt/sync')
| -rw-r--r-- | src/rt/sync/sync.cpp | 2 | ||||
| -rw-r--r-- | src/rt/sync/timer.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/sync/sync.cpp b/src/rt/sync/sync.cpp index eba51a49..09a6f291 100644 --- a/src/rt/sync/sync.cpp +++ b/src/rt/sync/sync.cpp @@ -5,7 +5,7 @@ void sync::yield() { #ifdef __APPLE__ pthread_yield_np(); #elif __WIN32__ - + Sleep(1); #else pthread_yield(); #endif diff --git a/src/rt/sync/timer.cpp b/src/rt/sync/timer.cpp index e45dd633..0487b397 100644 --- a/src/rt/sync/timer.cpp +++ b/src/rt/sync/timer.cpp @@ -6,12 +6,12 @@ #endif timer::timer() { - reset(0); #if __WIN32__ uint64_t ticks_per_second; QueryPerformanceFrequency((LARGE_INTEGER *)&ticks_per_second); _ticks_per_us = ticks_per_second / 1000000; #endif + reset(0); } void |