cvs commit: src/sys/kern subr_taskqueue.c
John Baldwin
jhb at FreeBSD.org
Thu Feb 19 14:03:53 PST 2004
jhb 2004/02/19 14:03:52 PST
FreeBSD src repository
Modified files:
sys/kern subr_taskqueue.c
Log:
Tidy up the thread taskqueue implementation and close a lost wakeup race.
Instead of creating a mutex that we msleep on but don't actually lock when
doing the corresponding wakeup(), in the kthread, lock the mutex associated
with our taskqueue and msleep while the queue is empty. Assert that the
queue is locked when the callback function is called to wake the kthread.
Revision Changes Path
1.22 +9 -14 src/sys/kern/subr_taskqueue.c
More information about the cvs-src
mailing list