diff options
Diffstat (limited to 'src/lib/thread.c')
-rw-r--r-- | src/lib/thread.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/thread.c b/src/lib/thread.c index c2504823b9..9387b037dd 100644 --- a/src/lib/thread.c +++ b/src/lib/thread.c @@ -121,9 +121,8 @@ static void idle_thread(void *unused) { /* This thread never voluntarily yields. */ thread_prevent_coop(); - while (1) { + while (1) timers_run(); - } } static void schedule(struct thread *t) @@ -214,9 +213,8 @@ static void idle_thread_init(void) t = get_free_thread(); - if (t == NULL) { + if (t == NULL) die("No threads available for idle thread!\n"); - } /* Queue idle thread to run once all other threads have yielded. */ prepare_thread(t, idle_thread, NULL, call_wrapper, NULL); |