summaryrefslogtreecommitdiffstats
path: root/share/man/man3/pthread_spin_init.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_spin_init.3
parentc5e3be2b7c773a43ddb3ba7e6ea11476dc4a367d (diff)
downloadFreeBSD-src-309b690374c311ffd3bb56b646bf1e055b176a35.zip
FreeBSD-src-309b690374c311ffd3bb56b646bf1e055b176a35.tar.gz
Fixed markup bugs.
Diffstat (limited to 'share/man/man3/pthread_spin_init.3')
-rw-r--r--share/man/man3/pthread_spin_init.324
1 files changed, 11 insertions, 13 deletions
diff --git a/share/man/man3/pthread_spin_init.3 b/share/man/man3/pthread_spin_init.3
index 87bce85..884753d 100644
--- a/share/man/man3/pthread_spin_init.3
+++ b/share/man/man3/pthread_spin_init.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 January 22, 2004
-.Dt PTHREAD_SPIN_INIT 3 PTHREAD_SPIN_DESTROY 3
+.Dt PTHREAD_SPIN_INIT 3
.Os
.Sh NAME
-.Nm pthread_spin_init pthread_spin_destroy
+.Nm pthread_spin_init , pthread_spin_destroy
.Nd "initialize or destroy a spin lock"
.Sh LIBRARY
.Lb libpthread
@@ -51,15 +49,15 @@ allocate any resources necessary to begin using it.
If
.Fa pshared
is set to
-.Dv PTHREAD_PROCESS_SHARED
+.Dv PTHREAD_PROCESS_SHARED ,
any thread,
whether belonging to the process in which the spinlock was created or not,
that has access to the memory area where
.Fa lock
-resides can use
+resides, can use
.Fa lock .
If it is set to
-.Dv PTHREAD_PROCESS_PRIVATE
+.Dv PTHREAD_PROCESS_PRIVATE ,
it can only be used by threads within the same process.
.Pp
The
@@ -67,18 +65,17 @@ The
function will destroy
.Fa lock
and release any resources that may have been allocated on its behalf.
-.Pp
-.Sh DIAGNOSTICS
+.Sh RETURN VALUES
If successful,
both
.Fn pthread_spin_init
and
.Fn pthread_spin_destroy
will return zero.
-Otherwise an error number will be returned to indicate the error.
-.Pp
-Neither of these functions will return EINTR.
+Otherwise, an error number will be returned to indicate the error.
.Pp
+Neither of these functions will return
+.Er EINTR .
.Sh ERRORS
The
.Fn pthread_spin_init
@@ -138,4 +135,5 @@ and in
.Lb libpthread
if any value other than
.Dv PTHREAD_PROCESSES_PRIVATE
-is specified it returns EINVAL.
+is specified, it returns
+.Er EINVAL .
OpenPOWER on IntegriCloud