Module Name:    src
Committed By:   thorpej
Date:           Wed Dec 26 21:48:55 UTC 2018

Modified Files:
        src/share/man/man9: threadpool.9

Log Message:
Document the threadpool_job_fn_t type and its use.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man9/threadpool.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man9/threadpool.9
diff -u src/share/man/man9/threadpool.9:1.2 src/share/man/man9/threadpool.9:1.3
--- src/share/man/man9/threadpool.9:1.2	Wed Dec 26 18:54:19 2018
+++ src/share/man/man9/threadpool.9	Wed Dec 26 21:48:55 2018
@@ -1,4 +1,4 @@
-.\" $NetBSD: threadpool.9,v 1.2 2018/12/26 18:54:19 thorpej Exp $
+.\" $NetBSD: threadpool.9,v 1.3 2018/12/26 21:48:55 thorpej Exp $
 .\"
 .\" Copyright (c) 2014 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd December 24, 2018
+.Dd December 26, 2018
 .Dt THREADPOOL 9
 .Os
 .\"
@@ -38,6 +38,8 @@
 .Sh SYNOPSIS
 .In sys/threadpool.h
 .\""""""""""""""""""""""""""""""""""""
+.Vt typedef void threadpool_job_fn_t(struct threadpool_job *);
+.\""""""""""""""""""""""""""""""""""""
 .Ft int
 .Fn threadpool_get "struct threadpool **poolp" "pri_t pri"
 .\"
@@ -57,7 +59,7 @@
 .Fn threadpool_percpu_ref_remote "struct threadpool_percpu *pool" "struct cpu_info *ci"
 .\""""""""""""""""""""""""""""""""""""
 .Ft void
-.Fn threadpool_job_init "struct threadpool_job *job" "void (*fn)(struct threadpool_job *)" "kmutex_t *interlock"
+.Fn threadpool_job_init "struct threadpool_job *job" "threadpool_job_fn_t fn" "kmutex_t *interlock"
 .\"
 .Ft void
 .Fn threadpool_job_destroy "struct threadpool_job *job"

Reply via email to