cvs commit: src/sys/sys taskqueue.h src/sys/kern subr_taskqueue.c
Sam Leffler
sam at FreeBSD.org
Sat Apr 30 17:38:11 PDT 2005
sam 2005-05-01 00:38:11 UTC
FreeBSD src repository
Modified files:
sys/sys taskqueue.h
sys/kern subr_taskqueue.c
Log:
o enable shutdown of taskqueue threads; the thread servicing the queue checks
a new entry in the taskqueue struct each time it wakes up to see if it
should terminate
o adjust TASKQUEUE_DEFINE_THREAD & co. to record the thread/proc identity for
the shutdown rendezvous
o replace wakeup after adding a task to a queue with wakeup_one; this helps
queues where multiple threads are used to service tasks (e.g. acpi)
o remove NULL check of tq_enqueue method; it should never be NULL
Reviewed by: dfr, njl
Revision Changes Path
1.27 +38 -10 src/sys/kern/subr_taskqueue.c
1.14 +5 -3 src/sys/sys/taskqueue.h
More information about the cvs-src
mailing list