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:
parent
a328699b34
commit
e4adaf642c
@ -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 ,
|
||||
|
@ -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 ,
|
||||
|
Loading…
x
Reference in New Issue
Block a user