X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/5b2abdfbf4211b6592cdd02b9507555a0ecbb04b..5f4d86c1219d56604890d932a3152b3b5dd15b55:/pthreads/pthread_mutex_lock.3 diff --git a/pthreads/pthread_mutex_lock.3 b/pthreads/pthread_mutex_lock.3 index 468bd0c..e0a4fad 100644 --- a/pthreads/pthread_mutex_lock.3 +++ b/pthreads/pthread_mutex_lock.3 @@ -36,7 +36,9 @@ .Sh SYNOPSIS .Fd #include .Ft int -.Fn pthread_mutex_lock "pthread_mutex_t *mutex" +.Fo pthread_mutex_lock +.Fa "pthread_mutex_t *mutex" +.Fc .Sh DESCRIPTION The .Fn pthread_mutex_lock @@ -47,19 +49,19 @@ mutex becomes available. .Sh RETURN VALUES If successful, .Fn pthread_mutex_lock -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_lock will fail if: .Bl -tag -width Er +.It Bq Er EDEADLK +A deadlock would occur if the thread blocked waiting for +.Fa mutex . .It Bq Er EINVAL The value specified by .Fa mutex is invalid. -.It Bq Er EDEADLK -A deadlock would occur if the thread blocked waiting for -.Fa mutex . .El .Sh SEE ALSO .Xr pthread_mutex_destroy 3 ,