summaryrefslogtreecommitdiffstats
path: root/share/man/man3/pthread_barrier_destroy.3
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-06-17 17:51:17 +0000
committerru <ru@FreeBSD.org>2004-06-17 17:51:17 +0000
commit309b690374c311ffd3bb56b646bf1e055b176a35 (patch)
tree44d1b91a555b9e1e34b9891cf92d4b676d9c4cd1 /share/man/man3/pthread_barrier_destroy.3
parentc5e3be2b7c773a43ddb3ba7e6ea11476dc4a367d (diff)
downloadFreeBSD-src-309b690374c311ffd3bb56b646bf1e055b176a35.zip
FreeBSD-src-309b690374c311ffd3bb56b646bf1e055b176a35.tar.gz
Fixed markup bugs.
Diffstat (limited to 'share/man/man3/pthread_barrier_destroy.3')
-rw-r--r--share/man/man3/pthread_barrier_destroy.328
1 files changed, 15 insertions, 13 deletions
diff --git a/share/man/man3/pthread_barrier_destroy.3 b/share/man/man3/pthread_barrier_destroy.3
index 27ded5b..cc349ec 100644
--- a/share/man/man3/pthread_barrier_destroy.3
+++ b/share/man/man3/pthread_barrier_destroy.3
@@ -24,13 +24,11 @@
.\"
.\" $FreeBSD$
.\"
-.\" Note: The date here should be updated whenever a non-trivial
-.\" change is made to the manual page.
.Dd February 19, 2004
-.Dt PTHREAD_BARRIER_DESTROY 3 PTHREAD_BARRIER_INIT 3 PTHREAD_BARRIER_WAIT 3
+.Dt PTHREAD_BARRIER 3
.Os
.Sh NAME
-.Nm pthread_barrier_destroy pthread_barrier_init pthread_barrier_wait
+.Nm pthread_barrier_destroy , pthread_barrier_init , pthread_barrier_wait
.Nd "destroy, initialize or wait on a barrier object"
.Sh LIBRARY
.Lb libpthread
@@ -50,7 +48,8 @@ function will initialize
.Fa barrier
with attributes specified in
.Fa attr ,
-or if it is NULL,
+or if it is
+.Dv NULL ,
with default attributes.
The number of threads that must call
.Fn pthread_barrier_wait
@@ -76,27 +75,31 @@ any of them will be released is determined by the
argument to
.Fn pthread_barrier_init .
Once the threads have been released the barrier will be reset.
-.Sh DIAGNOSTICS
+.Sh RETURN VALUES
If successful,
both
.Fn pthread_barrier_destroy
and
.Fn pthread_barrier_init
will return zero.
-Otherwise an error number will be returned to indicate the error.
+Otherwise, an error number will be returned to indicate the error.
If the call to
.Fn pthread_barrier_wait
-is successful all but one of the threads will return zero.
-That one thread will return PTHREAD_BARRIER_SERIAL_THREAD.
-Otherwise an error number will be returned to indicate the error.
+is successful, all but one of the threads will return zero.
+That one thread will return
+.Dv PTHREAD_BARRIER_SERIAL_THREAD .
+Otherwise, an error number will be returned to indicate the error.
.Pp
-None of these functions will return EINTR.
+None of these functions will return
+.Er EINTR .
.Sh IMPLIMENTATION NOTES
In both
.Lb libpthread
and
.Lb libthr
-the PTHREAD_BARRIER_SERIAL_THREAD return value will
+the
+.Dv PTHREAD_BARRIER_SERIAL_THREAD
+return value will
always be returned by the last thread to reach the barrier.
.Sh ERRORS
The
@@ -139,7 +142,6 @@ Insufficient memory to initialize
.Fa barrier .
.El
.Sh SEE ALSO
-.Xr pthread_barrier_wait 3 ,
.Xr pthread_barrierattr 3
.Sh HISTORY
The
OpenPOWER on IntegriCloud