summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-03-30 04:10:04 +0000
committerimp <imp@FreeBSD.org>2007-03-30 04:10:04 +0000
commite2cbeb22605e634a734bc8360bba04dc583e5d0b (patch)
tree8daa65d907f2c50805c44a895c3989cf86efd647
parent19e6b257f6e173b3f4855a6429b1e358f944fa5d (diff)
downloadFreeBSD-src-e2cbeb22605e634a734bc8360bba04dc583e5d0b.zip
FreeBSD-src-e2cbeb22605e634a734bc8360bba04dc583e5d0b.tar.gz
Document that EPERM is returned when the calling thread does not have
the mutex locked. Also tweak the wording to make it more consistant between pthread_cond_wait and pthread_cond_tiedwait. Confirmed with the opengroup's web site that this is a valid return value. Wording used specifically not that of opengroup's online man pages. MFC After: 1 week
-rw-r--r--share/man/man3/pthread_cond_timedwait.36
-rw-r--r--share/man/man3/pthread_cond_wait.34
2 files changed, 9 insertions, 1 deletions
diff --git a/share/man/man3/pthread_cond_timedwait.3 b/share/man/man3/pthread_cond_timedwait.3
index 46b1951..49ad347 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 89e4bea..88b7233 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 ,
OpenPOWER on IntegriCloud