diff options
author | jhb <jhb@FreeBSD.org> | 2006-02-23 19:11:16 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-02-23 19:11:16 +0000 |
commit | 110e3dcc24efc5867d2b76d28907d6ae6a084fae (patch) | |
tree | c03486b751cbec0739b7b723fb313b3ee389ce13 /lib/libpthread/thread/thr_attr_getschedparam.c | |
parent | f9bb94460681f188fe4dbd27475f4ebdc423a3c9 (diff) | |
download | FreeBSD-src-110e3dcc24efc5867d2b76d28907d6ae6a084fae.zip FreeBSD-src-110e3dcc24efc5867d2b76d28907d6ae6a084fae.tar.gz |
- Use callout_init_mtx() to initialize toffhandle callout using the fdc's
mutex.
- Don't use callout_drain() to stop the toffhandle callout while holding the
fdc mutex (this could deadlock) in functions called from softclock
(callouts aren't allowed to do voluntary sleeps). Instead, use
callout_stop(). Note that since we hold the associated mutex and are now
using callout_init_mtx(), callout_stop() is just as effective as
callout_drain(). (Though callout_drain() is still needed in detach to
make sure softclock isn't contesting on our mutex before we destroy the
mutex.)
- Remove unused callout 'tohandle' from softc.
MFC after: 1 week
Diffstat (limited to 'lib/libpthread/thread/thr_attr_getschedparam.c')
0 files changed, 0 insertions, 0 deletions