diff --git a/share/man/man3/pthread_cond_timedwait.3 b/share/man/man3/pthread_cond_timedwait.3 index 46b195166284..49ad347a6f6a 100644 --- a/share/man/man3/pthread_cond_timedwait.3 +++ b/share/man/man3/pthread_cond_timedwait.3 @@ -46,7 +46,7 @@ The function atomically blocks the current thread waiting on the condition variable specified by .Fa cond , -and unblocks the mutex specified by +and releases the mutex specified by .Fa mutex . The waiting thread unblocks only after another thread calls .Xr pthread_cond_signal 3 , @@ -78,6 +78,10 @@ is invalid. .It Bq Er ETIMEDOUT The system time has reached or exceeded the time specified in .Fa abstime . +.It Bq Er EPERM +The specified +.Fa mutex +was not locked by the calling thread. .El .Sh SEE ALSO .Xr pthread_cond_broadcast 3 , diff --git a/share/man/man3/pthread_cond_wait.3 b/share/man/man3/pthread_cond_wait.3 index 89e4bea2bc34..88b7233b16bb 100644 --- a/share/man/man3/pthread_cond_wait.3 +++ b/share/man/man3/pthread_cond_wait.3 @@ -72,6 +72,10 @@ The value specified by or the value specified by .Fa mutex is invalid. +.It Bq Er EPERM +The specified +.Fa mutex +was not locked by the calling thread. .El .Sh SEE ALSO .Xr pthread_cond_broadcast 3 ,