diff options
Diffstat (limited to 'uisimulator/win32/kernel.c')
-rw-r--r-- | uisimulator/win32/kernel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/uisimulator/win32/kernel.c b/uisimulator/win32/kernel.c index 3410bc9cc9..045b03d330 100644 --- a/uisimulator/win32/kernel.c +++ b/uisimulator/win32/kernel.c | |||
@@ -31,6 +31,7 @@ void sleep(int ticks) | |||
31 | 31 | ||
32 | void yield (void) | 32 | void yield (void) |
33 | { | 33 | { |
34 | Sleep (1); /* prevent busy loop */ | ||
34 | PostThreadMessage (GetWindowThreadProcessId (hGUIWnd,NULL), TM_YIELD, 0, 0); | 35 | PostThreadMessage (GetWindowThreadProcessId (hGUIWnd,NULL), TM_YIELD, 0, 0); |
35 | } | 36 | } |
36 | 37 | ||