Is pthread_cond_signal(3) man page correct?
David Xu
davidxu at freebsd.org
Thu Mar 17 01:54:07 UTC 2011
On 2011/03/16 23:23, Yuri wrote:
> On 02/27/2011 18:00, David Xu wrote:
>> I think in normal case, pthread_cond_signal will wake up one thread,
>> but other events for example, UNIX signal and fork() may interrupt
>> a thread sleeping in kernel, and cause pthread_cond_wait to return
>> to userland, this is called spurious wakeup, and other events, I
>> can not think of yet, but I believe they exist.
>>
>
> Does this mean that pthread_cond_signal can also return EINTR? This
> isn't in pthread_cond_signal(3) either.
>
No, it will return zero, returning EINTR is not allowed.
> Is this the case that all system calls should be assumed to be able to
> return EINTR or only those that have EINTR in their man pages?
>
> Yuri
>
More information about the freebsd-standards
mailing list