Document the threadpool_job_fn_t type and its use.
This commit is contained in:
parent
026a00ed4a
commit
7a41d85ec9
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue