summaryrefslogtreecommitdiff
path: root/uisimulator/common
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/common')
-rw-r--r--uisimulator/common/io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c
index 127a1c36f1..463bbc68d9 100644
--- a/uisimulator/common/io.c
+++ b/uisimulator/common/io.c
@@ -261,7 +261,8 @@ void sim_io_init(void)
261 } 261 }
262 262
263 /* Wait for IO thread to lock mutex */ 263 /* Wait for IO thread to lock mutex */
264 while (!io.ready); 264 while (!io.ready)
265 SDL_Delay(0);
265 266
266 /* Wait for it to unlock */ 267 /* Wait for it to unlock */
267 SDL_LockMutex(io.m); 268 SDL_LockMutex(io.m);