diff options
author | gavin <gavin@FreeBSD.org> | 2014-08-12 12:44:52 +0000 |
---|---|---|
committer | gavin <gavin@FreeBSD.org> | 2014-08-12 12:44:52 +0000 |
commit | 034eb30570a2d8b61462db5e72cb8e3f5c762392 (patch) | |
tree | f55cc9f27cca744e5fbf475db70bc7ba1275f2a6 /share/man/man3 | |
parent | 228ba577ee2fd73c3d7730e20393d74b4d891111 (diff) | |
download | FreeBSD-src-034eb30570a2d8b61462db5e72cb8e3f5c762392.zip FreeBSD-src-034eb30570a2d8b61462db5e72cb8e3f5c762392.tar.gz |
Clarify descriptions of pthread_cond_wait() and pthread_cond_timedwait()
Requested by: Malcolm Douglas via freebsd-doc
Reviewed by: jhb
MFC after: 1 week
Diffstat (limited to 'share/man/man3')
-rw-r--r-- | share/man/man3/pthread.3 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/share/man/man3/pthread.3 b/share/man/man3/pthread.3 index 9c80f70..78a9153 100644 --- a/share/man/man3/pthread.3 +++ b/share/man/man3/pthread.3 @@ -30,7 +30,7 @@ .\" .\" $FreeBSD$ .\" -.Dd January 8, 2010 +.Dd August 12, 2014 .Dt PTHREAD 3 .Os .Sh NAME @@ -344,13 +344,13 @@ Unblock at least one of the threads blocked on the specified condition variable. .Fa "const struct timespec *abstime" .Fc .Xc -Wait no longer than the specified time for a condition -and lock the specified mutex. +Unlock the specified mutex, wait no longer than the specified time for +a condition, and then relock the mutex. .It Xo .Ft int .Fn pthread_cond_wait "pthread_cond_t *" "pthread_mutex_t *mutex" .Xc -Wait for a condition and lock the specified mutex. +Unlock the specified mutex, wait for a condition, and relock the mutex. .El .Ss Read/Write Lock Routines .Bl -tag -width indent |