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:
parent
8fee57f7e7
commit
a7772ecabd
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user