diff options
author | Matthew D Fleming <mdf@FreeBSD.org> | 2010-07-22 16:41:09 +0000 |
---|---|---|
committer | Matthew D Fleming <mdf@FreeBSD.org> | 2010-07-22 16:41:09 +0000 |
commit | 242ed5d96c2f8f190e7eee13cb5f22ec85535344 (patch) | |
tree | 3a37e0a8990ba91718b1b54ff6cb60d91c9caa49 /sys/sys/taskqueue.h | |
parent | 74d53216ac1236f7171b53ec6cf719621aa0b056 (diff) | |
download | src-242ed5d96c2f8f190e7eee13cb5f22ec85535344.tar.gz src-242ed5d96c2f8f190e7eee13cb5f22ec85535344.zip |
Fix taskqueue_drain(9) to not have false negatives. For threaded
taskqueues, more than one task can be running simultaneously.
Also make taskqueue_run(9) static to the file, since there are no
consumers in the base kernel and the function signature needs to change
with this fix.
Remove mention of taskqueue_run(9) and taskqueue_run_fast(9) from the
taskqueue(9) man page.
Reviewed by: jhb
Approved by: zml (mentor)
Notes
Notes:
svn path=/head/; revision=210377
Diffstat (limited to 'sys/sys/taskqueue.h')
-rw-r--r-- | sys/sys/taskqueue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/taskqueue.h b/sys/sys/taskqueue.h index bf2e4ee31d0d..2490deb3c0f7 100644 --- a/sys/sys/taskqueue.h +++ b/sys/sys/taskqueue.h @@ -56,7 +56,6 @@ int taskqueue_start_threads(struct taskqueue **tqp, int count, int pri, int taskqueue_enqueue(struct taskqueue *queue, struct task *task); void taskqueue_drain(struct taskqueue *queue, struct task *task); void taskqueue_free(struct taskqueue *queue); -void taskqueue_run(struct taskqueue *queue); void taskqueue_block(struct taskqueue *queue); void taskqueue_unblock(struct taskqueue *queue); int taskqueue_member(struct taskqueue *queue, struct thread *td); @@ -75,6 +74,7 @@ void taskqueue_thread_enqueue(void *context); (task)->ta_priority = (priority); \ (task)->ta_func = (func); \ (task)->ta_context = (context); \ + (task)->ta_running = NULL; \ } while (0) /* |