summaryrefslogtreecommitdiff
path: root/lib/libpthread/man/pthread_once.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/man/pthread_once.3')
-rw-r--r--lib/libpthread/man/pthread_once.315
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/libpthread/man/pthread_once.3 b/lib/libpthread/man/pthread_once.3
index 4e1ae2a02de..83e40014787 100644
--- a/lib/libpthread/man/pthread_once.3
+++ b/lib/libpthread/man/pthread_once.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthread_once.3,v 1.9 2002/02/21 20:12:19 fgsch Exp $
+.\" $OpenBSD: pthread_once.3,v 1.10 2002/05/01 08:03:30 mpech Exp $
.\"
.\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>.
.\" All rights reserved.
@@ -55,7 +55,8 @@ by any thread in a process, with a given
.Fa once_control ,
will call the
.Fn init_routine
-with no arguments. Subsequent calls to
+with no arguments.
+Subsequent calls to
.Fn pthread_once
with the same
.Fa once_control
@@ -65,14 +66,16 @@ On return from
.Fn pthread_once ,
it is guaranteed that
.Fn init_routine
-has completed. The
+has completed.
+The
.Fa once_control
parameter is used to determine whether the associated initialization
routine has been called.
.Pp
The function
.Fn pthread_once
-is not a cancellation point. However, if
+is not a cancellation point.
+However, if
.Fn init_routine
is a cancellation point and is cancelled, the effect on
.Fa once_control is as if
@@ -93,8 +96,8 @@ has automatic storage duration or is not initialized by
.Sh RETURN VALUES
If successful, the
.Fn pthread_once
-function will return zero. Otherwise an error number will be returned to
-indicate the error.
+function will return zero.
+Otherwise an error number will be returned to indicate the error.
.Sh ERRORS
None.
.Sh STANDARDS