summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/win32/thread-win32.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/uisimulator/win32/thread-win32.c b/uisimulator/win32/thread-win32.c
index bfad7cc1e8..7c33017c7e 100644
--- a/uisimulator/win32/thread-win32.c
+++ b/uisimulator/win32/thread-win32.c
@@ -33,22 +33,8 @@ CRITICAL_SECTION CriticalSection;
void yield(void)
{
- static clock_t last = 0;
- clock_t now;
-
LeaveCriticalSection(&CriticalSection);
- /* Don't call Sleep() too often (as the smallest sleep really is a bit
- * longer). This keeps CPU usage low, yet allows sound playback to work
- * well (at least on one particular computer).
- */
- now = clock();
-
- if (now - last > CLOCKS_PER_SEC / 200)
- {
- last = now;
- Sleep(1);
- }
-
+ Sleep(1);
EnterCriticalSection(&CriticalSection);
}