Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man9 Document the threadpool_job_fn_t type and its...



details:   https://anonhg.NetBSD.org/src/rev/595e178154ca
branches:  trunk
changeset: 837913:595e178154ca
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Dec 26 21:48:55 2018 +0000

description:
Document the threadpool_job_fn_t type and its use.

diffstat:

 share/man/man9/threadpool.9 |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 8393ed73265f -r 595e178154ca share/man/man9/threadpool.9
--- a/share/man/man9/threadpool.9       Wed Dec 26 21:43:39 2018 +0000
+++ b/share/man/man9/threadpool.9       Wed Dec 26 21:48:55 2018 +0000
@@ -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"



Home | Main Index | Thread Index | Old Index