document that even when wakeup_one is used to wakeup, msleep and friends
may still return a non-zero value... You are not guaranteed to get a one to one mapping between wakeup_one and zero return values... Reviewed by: kib MFC after: 3 days
This commit is contained in:
parent
d917717eeb
commit
2634879bbb
@ -255,6 +255,14 @@ pay particular attention to ensure that no other threads wait on the
|
||||
same
|
||||
.Fa chan .
|
||||
.Sh RETURN VALUES
|
||||
When awakened by a call to
|
||||
.Fn wakeup
|
||||
or
|
||||
.Fn wakeup_one ,
|
||||
if a signal is pending and
|
||||
.Dv PCATCH
|
||||
is specified,
|
||||
a non-zero error code is returned.
|
||||
If the thread is awakened by a call to
|
||||
.Fn wakeup
|
||||
or
|
||||
|
Loading…
x
Reference in New Issue
Block a user