cvs commit: src/sys/sys taskqueue.h src/sys/kern subr_taskqueue.c
Scott Long
scottl at FreeBSD.org
Tue Mar 25 15:38:46 PDT 2008
scottl 2008-03-25 22:38:45 UTC
FreeBSD src repository
Modified files:
sys/sys taskqueue.h
sys/kern subr_taskqueue.c
Log:
Implement taskqueue_block() and taskqueue_unblock(). These functions allow
the owner of a queue to block and unblock execution of the tasks in the
queue while allowing tasks to continue to be added queue. Combining this
with taskqueue_drain() allows a queue to be safely disabled. The unblock
function may run (or schedule to run) the queue when it is called, just as
calling taskqueue_enqueue() would.
Reviewed by: jhb, sam
Revision Changes Path
1.41 +28 -1 src/sys/kern/subr_taskqueue.c
1.18 +2 -0 src/sys/sys/taskqueue.h
More information about the cvs-src
mailing list