mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2026-10-28 09:43:51 +00:00
pipe: fix last remaining CPU thrasher
This commit is contained in:
1 parent
590a163ef2
commit
c30d889f0c
1 file changed
+4
-1
+4
-1
@@ -208,7 +208,10 @@ void *read_stdin(void *arg)
|
||||
}
|
||||
} else if (sel < 0) {
|
||||
perror("select()");
|
||||
}
|
||||
} else if (sel == 0) {
|
||||
// Don't thrash while waiting for input
|
||||
sleep(1);
|
||||
}
|
||||
pthread_mutex_lock(&main_loop_mutex);
|
||||
}
|
||||
pthread_mutex_unlock(&main_loop_mutex);
|
||||
|
||||
Reference in new issue
Block a user