Loading...
--- Libc/Libc-262/pthreads/pthread_cond_wait.3
+++ Libc/Libc-583/pthreads/pthread_cond_wait.3
@@ -37,7 +37,10 @@
.Sh SYNOPSIS
.Fd #include <pthread.h>
.Ft int
-.Fn pthread_cond_wait "pthread_cond_t *cond" "pthread_mutex_t *mutex"
+.Fo pthread_cond_wait
+.Fa "pthread_cond_t *restrict cond"
+.Fa "pthread_mutex_t *restrict mutex"
+.Fc
.Sh DESCRIPTION
The
.Fn pthread_cond_wait
@@ -45,13 +48,15 @@
.Fa mutex
argument and waits on the
.Fa cond
-argument.
+argument. Before returning control to the calling function,
+.Fn pthread_cond_wait
+re-acquires the
+.Fa mutex.
.Sh RETURN VALUES
If successful, the
.Fn pthread_cond_wait
function 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.
.Sh ERRORS
.Fn pthread_cond_wait
will fail if: