diff options
-rw-r--r-- | lib/libc_r/uthread/uthread_kern.c | 2 | ||||
-rw-r--r-- | lib/libkse/thread/thr_kern.c | 2 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_kern.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc_r/uthread/uthread_kern.c b/lib/libc_r/uthread/uthread_kern.c index 67844e1..4d92385 100644 --- a/lib/libc_r/uthread/uthread_kern.c +++ b/lib/libc_r/uthread/uthread_kern.c @@ -323,7 +323,7 @@ _thread_kern_scheduler(void) * Avoid polling file descriptors if there are none * waiting: */ - if (TAILQ_EMPTY(&_workq) == 0) { + if (TAILQ_EMPTY(&_workq) != 0) { } /* * Poll file descriptors only if a new scheduling signal diff --git a/lib/libkse/thread/thr_kern.c b/lib/libkse/thread/thr_kern.c index 67844e1..4d92385 100644 --- a/lib/libkse/thread/thr_kern.c +++ b/lib/libkse/thread/thr_kern.c @@ -323,7 +323,7 @@ _thread_kern_scheduler(void) * Avoid polling file descriptors if there are none * waiting: */ - if (TAILQ_EMPTY(&_workq) == 0) { + if (TAILQ_EMPTY(&_workq) != 0) { } /* * Poll file descriptors only if a new scheduling signal diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c index 67844e1..4d92385 100644 --- a/lib/libpthread/thread/thr_kern.c +++ b/lib/libpthread/thread/thr_kern.c @@ -323,7 +323,7 @@ _thread_kern_scheduler(void) * Avoid polling file descriptors if there are none * waiting: */ - if (TAILQ_EMPTY(&_workq) == 0) { + if (TAILQ_EMPTY(&_workq) != 0) { } /* * Poll file descriptors only if a new scheduling signal |