summaryrefslogtreecommitdiffstats
path: root/share/man/man3/pthread_spin_lock.3
diff options
context:
space:
mode:
Diffstat (limited to 'share/man/man3/pthread_spin_lock.3')
-rw-r--r--share/man/man3/pthread_spin_lock.320
1 files changed, 9 insertions, 11 deletions
diff --git a/share/man/man3/pthread_spin_lock.3 b/share/man/man3/pthread_spin_lock.3
index 0dc4490..64edc82 100644
--- a/share/man/man3/pthread_spin_lock.3
+++ b/share/man/man3/pthread_spin_lock.3
@@ -24,10 +24,8 @@
.\"
.\" $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_LOCK 3 PTHREAD_SPIN_TRYLOCK 3 PTHREAD_SPIN_UNLOCK 3
+.Dt PTHREAD_SPIN_LOCK 3
.Os
.Sh NAME
.Nm pthread_spin_lock pthread_spin_trylock pthread_spin_unlock
@@ -49,7 +47,7 @@ The
function will acquire
.Fa lock
if it is not currently owned by another thread.
-If the lock cannot be acquired immediately it will
+If the lock cannot be acquired immediately, it will
spin attempting to acquire the lock (it will not sleep) until
it becomes available.
.Pp
@@ -69,12 +67,12 @@ which must have been previously locked by a call to
.Fn pthread_spin_lock
or
.Fn pthread_spin_trylock .
-.Sh DIAGNOSTICS
-If successful all these functions will return zero.
-Otherwise an error number will be returned to indicate the error.
-.Pp
-None of these functions will return EINTR.
+.Sh RETURN VALUES
+If successful, all these functions will return zero.
+Otherwise, an error number will be returned to indicate the error.
.Pp
+None of these functions will return
+.Er EINTR .
.Sh ERRORS
The
.Fn pthread_spin_lock ,
@@ -115,8 +113,8 @@ The calling thread does not own
.Fa lock .
.El
.Sh SEE ALSO
-.Xr pthread_spin_init 3 ,
-.Xr pthread_spin_destroy 3
+.Xr pthread_spin_destroy 3 ,
+.Xr pthread_spin_init 3
.Sh HISTORY
The
.Fn pthread_spin_lock ,
OpenPOWER on IntegriCloud