]> git.saurik.com Git - apple/libc.git/blobdiff - pthreads/pthread_mutex_unlock.3
Libc-498.tar.gz
[apple/libc.git] / pthreads / pthread_mutex_unlock.3
index 38c509f2c069658036b581f1d539cec38d0b76fe..08ef98e80996c1debf6be106feed41c6e795391f 100644 (file)
@@ -36,7 +36,9 @@
 .Sh SYNOPSIS
 .Fd #include <pthread.h>
 .Ft int
-.Fn pthread_mutex_unlock "pthread_mutex_t *mutex"
+.Fo pthread_mutex_unlock
+.Fa "pthread_mutex_t *mutex"
+.Fc
 .Sh DESCRIPTION
 If the current thread holds the lock on
 .Fa mutex ,
@@ -47,10 +49,10 @@ function unlocks
 .Sh RETURN VALUES
 If successful,
 .Fn pthread_mutex_unlock
-will return zero, otherwise an error number will be returned to
-indicate the error.
+will return zero.
+Otherwise, an error number will be returned to indicate the error.
 .Sh ERRORS
-.Fn pthread_mutex_trylock
+.Fn pthread_mutex_unlock
 will fail if:
 .Bl -tag -width Er
 .It Bq Er EINVAL