Correct the logic for checking the emptiness of the waiting queue.

This fixes a potential problem where the file descriptors would not
be polled causing waiting threads to stay waiting.  Doh!

MFC candidate.
This commit is contained in:
deischen 2000-11-11 22:20:36 +00:00
parent 8fee57f7e7
commit a7772ecabd
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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