diff options
author | mdf <mdf@FreeBSD.org> | 2010-10-13 22:59:04 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2010-10-13 22:59:04 +0000 |
commit | 256615c9b37c8059eef0e130fbf813607a5396a8 (patch) | |
tree | 24055c8287880bae8bb9dd5d75857ecb3e5c766e /share | |
parent | 893b9eec864d62c7eba5010f46d140cf9db483e3 (diff) | |
download | FreeBSD-src-256615c9b37c8059eef0e130fbf813607a5396a8.zip FreeBSD-src-256615c9b37c8059eef0e130fbf813607a5396a8.tar.gz |
Use a safer mechanism for determining if a task is currently running,
that does not rely on the lifetime of pointers being the same. This also
restores the task KBI.
Suggested by: jhb
MFC after: 1 month
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/taskqueue.9 | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/share/man/man9/taskqueue.9 b/share/man/man9/taskqueue.9 index 83fb051..d5e096a 100644 --- a/share/man/man9/taskqueue.9 +++ b/share/man/man9/taskqueue.9 @@ -68,7 +68,7 @@ struct task { .Ft int .Fn taskqueue_member "struct taskqueue *queue" "struct thread *td" .Ft void -.Fn taskqueue_run "struct taskqueue *queue" "struct task **tpp" +.Fn taskqueue_run "struct taskqueue *queue" .Fn TASK_INIT "struct task *task" "int priority" "task_fn_t *func" "void *context" .Fn TASKQUEUE_DECLARE "name" .Fn TASKQUEUE_DEFINE "name" "taskqueue_enqueue_fn enqueue" "void *context" "init" @@ -185,13 +185,6 @@ The function will run all pending tasks in the specified .Fa queue . Normally this function is only used internally. -The -.Fa tpp -argument is a pointer to a -.Vt struct task * -that is used to record the currently running task. -The lifetime of this pointer must match that of the -.Fa queue . .Pp A convenience macro, .Fn TASK_INIT "task" "priority" "func" "context" |