summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_tcdrain.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-07-13 20:49:13 +0000
committerjhb <jhb@FreeBSD.org>2004-07-13 20:49:13 +0000
commit4a50f485c4356df4ca2c7b2684af05c53c8c7e5c (patch)
tree6ede2aa646e9671635fe201d061b8a5dee4d9219 /lib/libpthread/thread/thr_tcdrain.c
parentb0e68741889ab66096103a2dec2219bbde3c21c6 (diff)
downloadFreeBSD-src-4a50f485c4356df4ca2c7b2684af05c53c8c7e5c.zip
FreeBSD-src-4a50f485c4356df4ca2c7b2684af05c53c8c7e5c.tar.gz
Set TDF_NEEDRESCHED when a higher priority thread is scheduled in
sched_add() rather than just doing it in sched_wakeup(). The old ithread preemption code used to set NEEDRESCHED unconditionally if it didn't preempt which masked this bug in SCHED_4BSD. Noticed by: jake Reported by: kensmith, marcel
Diffstat (limited to 'lib/libpthread/thread/thr_tcdrain.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud