Source-Changes-HG archive

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

[src/trunk]: src/share/man/man9 threadpool: Fix man page for threadpool_job_i...



details:   https://anonhg.NetBSD.org/src/rev/74b8dbba295d
branches:  trunk
changeset: 938363:74b8dbba295d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Sep 07 01:07:38 2020 +0000

description:
threadpool: Fix man page for threadpool_job_init.

This is threadpool_job_init(job, fn, interlock, fmt, args...), not
just threadpool_job_init(job, fn, interlock).

diffstat:

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

diffs (38 lines):

diff -r 8ae7d9ac39b5 -r 74b8dbba295d share/man/man9/threadpool.9
--- a/share/man/man9/threadpool.9       Mon Sep 07 00:52:19 2020 +0000
+++ b/share/man/man9/threadpool.9       Mon Sep 07 01:07:38 2020 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: threadpool.9,v 1.3 2018/12/26 21:48:55 thorpej Exp $
+.\" $NetBSD: threadpool.9,v 1.4 2020/09/07 01:07:38 riastradh Exp $
 .\"
 .\" Copyright (c) 2014 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -59,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" "threadpool_job_fn_t fn" "kmutex_t *interlock"
+.Fn threadpool_job_init "struct threadpool_job *job" "threadpool_job_fn_t fn" "kmutex_t *interlock" "const char *fmt" "..."
 .\"
 .Ft void
 .Fn threadpool_job_destroy "struct threadpool_job *job"
@@ -214,13 +214,18 @@
 with thread pools obtained from
 .Fn threadpool_percpu_ref_remote .
 .\""""""""""""""""""""""""""""""""""""
-.It Fn threadpool_job_init "job" "fn" "interlock"
+.It Fn threadpool_job_init "job" "fn" "interlock" "fmt" "..."
 Initialize the threadpool job
 .Fa job
 to run
 .Fa fn
 when scheduled and to interlock with
 .Fa interlock .
+The argument
+.Fa fmt
+is a
+.Xr printf 9
+format string for the job's name.
 .Pp
 The mutex
 .Fa interlock



Home | Main Index | Thread Index | Old Index