X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/5b2abdfbf4211b6592cdd02b9507555a0ecbb04b..0a7506c9bdc0d0d560d4b9c8a3d1089f5db425b9:/pthreads/pthread_cond_timedwait.3 diff --git a/pthreads/pthread_cond_timedwait.3 b/pthreads/pthread_cond_timedwait.3 index 3ff427d..052599b 100644 --- a/pthreads/pthread_cond_timedwait.3 +++ b/pthreads/pthread_cond_timedwait.3 @@ -36,13 +36,17 @@ .Sh SYNOPSIS .Fd #include .Ft int -.Fn pthread_cond_timedwait "pthread_cond_t *cond" "pthread_mutex_t *mutex" "const struct timespec *abstime" +.Fo pthread_cond_timedwait +.Fa "pthread_cond_t *restrict cond" +.Fa "pthread_mutex_t *restrict mutex" +.Fa "const struct timespec *restrict abstime" +.Fc .Sh DESCRIPTION The .Fn pthread_cond_timedwait function atomically blocks the current thread waiting on the condition variable specified by -.Fa cond , +.Fa cond and unblocks the mutex specified by .Fa mutex . The waiting thread unblocks only after another thread calls @@ -58,7 +62,7 @@ and the current thread reacquires the lock on If successful, the .Fn pthread_cond_timedwait function will return zero. -Otherwise an error number will be returned to +Otherwise, an error number will be returned to indicate the error. .Sh ERRORS .Fn pthread_cond_timedwait