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
This commit is contained in:
Warner Losh 2007-03-30 04:10:04 +00:00
parent a328699b34
commit e4adaf642c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168038
2 changed files with 9 additions and 1 deletions

View File

@ -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 ,

View File

@ -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 ,