diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2003-07-18 02:46:30 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2003-07-18 02:46:30 +0000 |
| commit | 596ea21c7fd21f9989c67ac050f85f24e7fe0c3a (patch) | |
| tree | b47c0a599d105c7a35e226f6b60c3c2afc7eb204 /lib/libpthread/thread/thr_cond.c | |
| parent | 584a5a068d2953fb417caa4d28edd2baf484ac7b (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_cond.c')
| -rw-r--r-- | lib/libpthread/thread/thr_cond.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_cond.c b/lib/libpthread/thread/thr_cond.c index 9e73c61c4ee4..9703da6c5304 100644 --- a/lib/libpthread/thread/thr_cond.c +++ b/lib/libpthread/thread/thr_cond.c @@ -615,6 +615,10 @@ _pthread_cond_signal(pthread_cond_t * cond) != NULL) { THR_SCHED_LOCK(curthread, pthread); cond_queue_remove(*cond, pthread); + if ((pthread->kseg == curthread->kseg) && + (pthread->active_priority > + curthread->active_priority)) + curthread->critical_yield = 1; _thr_setrunnable_unlocked(pthread); THR_SCHED_UNLOCK(curthread, pthread); } @@ -674,6 +678,10 @@ _pthread_cond_broadcast(pthread_cond_t * cond) != NULL) { THR_SCHED_LOCK(curthread, pthread); cond_queue_remove(*cond, pthread); + if ((pthread->kseg == curthread->kseg) && + (pthread->active_priority > + curthread->active_priority)) + curthread->critical_yield = 1; _thr_setrunnable_unlocked(pthread); THR_SCHED_UNLOCK(curthread, pthread); } |
