summaryrefslogtreecommitdiffstats
path: root/share/man/man9
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2009-08-17 09:01:20 +0000
committerpjd <pjd@FreeBSD.org>2009-08-17 09:01:20 +0000
commitea8df6fcea7daa26626d5ebfe923d8bafdb0434a (patch)
tree9ffe4e19c60755bbb3d41be7adb8eb9e85d76ef0 /share/man/man9
parent3220ee349be0d1b1fa8d9f4a19b5a763a25f069f (diff)
downloadFreeBSD-src-ea8df6fcea7daa26626d5ebfe923d8bafdb0434a.zip
FreeBSD-src-ea8df6fcea7daa26626d5ebfe923d8bafdb0434a.tar.gz
Remove OpenSolaris taskq port (it performs very poorly in our kernel) and
replace it with wrappers around our taskqueue(9). To make it possible implement taskqueue_member() function which returns 1 if the given thread was created by the given taskqueue. Approved by: re (kib)
Diffstat (limited to 'share/man/man9')
-rw-r--r--share/man/man9/taskqueue.916
1 files changed, 15 insertions, 1 deletions
diff --git a/share/man/man9/taskqueue.9 b/share/man/man9/taskqueue.9
index 241b20f..589c3c6 100644
--- a/share/man/man9/taskqueue.9
+++ b/share/man/man9/taskqueue.9
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd June 13, 2008
+.Dd August 17, 2009
.Dt TASKQUEUE 9
.Os
.Sh NAME
@@ -71,6 +71,8 @@ struct task {
.Fn taskqueue_run_fast "struct taskqueue *queue"
.Ft void
.Fn taskqueue_drain "struct taskqueue *queue" "struct task *task"
+.Ft int
+.Fn taskqueue_member "struct taskqueue *queue" "struct thread *td"
.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"
@@ -182,6 +184,18 @@ There is no guarantee that the task will not be
enqueued after call to
.Fn taskqueue_drain .
.Pp
+The
+.Fn taskqueue_member
+function returns
+.No 1
+is the given thread
+.Fa td
+is part of the given taskqeueue
+.Fa queue
+and
+.No 0
+otherwise.
+.Pp
A convenience macro,
.Fn TASK_INIT "task" "priority" "func" "context"
is provided to initialise a
OpenPOWER on IntegriCloud