Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpthread Use similar markup than in pthread_mutex_init...
details: https://anonhg.NetBSD.org/src/rev/0d603946f5f7
branches: trunk
changeset: 755020:0d603946f5f7
user: jruoho <jruoho%NetBSD.org@localhost>
date: Thu May 20 04:47:38 2010 +0000
description:
Use similar markup than in pthread_mutex_init(3) etc. with the initializer
macro. Improve wording slightly.
diffstat:
lib/libpthread/pthread_once.3 | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diffs (47 lines):
diff -r 2038ef2dc1f0 -r 0d603946f5f7 lib/libpthread/pthread_once.3
--- a/lib/libpthread/pthread_once.3 Thu May 20 04:41:11 2010 +0000
+++ b/lib/libpthread/pthread_once.3 Thu May 20 04:47:38 2010 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_once.3,v 1.5 2010/05/16 12:36:32 jruoho Exp $
+.\" $NetBSD: pthread_once.3,v 1.6 2010/05/20 04:47:38 jruoho Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -55,7 +55,7 @@
.\"
.\" $FreeBSD: src/lib/libpthread/man/pthread_once.3,v 1.14 2002/09/16 19:29:29 mini Exp $
.\"
-.Dd May 16, 2010
+.Dd May 20, 2010
.Dt PTHREAD_ONCE 3
.Os
.Sh NAME
@@ -65,12 +65,10 @@
.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
-.Pp
-pthread_once_t
-.Fa once_control
-= PTHREAD_ONCE_INIT;
.Ft int
.Fn pthread_once "pthread_once_t *once_control" "void (*init_routine)(void)"
+.Pp
+.Va pthread_once_t once_control = Dv PTHREAD_ONCE_INIT;
.Sh DESCRIPTION
The first call to
.Fn pthread_once
@@ -108,9 +106,10 @@
.Pp
The constant
.Dv PTHREAD_ONCE_INIT
-is defined by header
-.In pthread.h .
-.Pp
+initializes the static once synchronization control structure
+.Fa once_control
+to be used with
+.Fn pthread_once .
The behavior of
.Fn pthread_once
is undefined if
Home |
Main Index |
Thread Index |
Old Index