|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-10-29 14:56:35
From: <williamkempf_at_[hidden]>
> > First the failed tests - I've checked and pthread_cond_timedwait is
> > returning zero, even though the condition variable is never
> signalled. The
> > trouble is if I've read the docs correctly pthread_cond_timedwait
> can
> > return zero any time it wants to (a spurious wakeup). In effect
> the client
> > would end up polling the condition until it becomes true.
>
> True in theory, but in practice this shouldn't really happen.
> Implementations should strive to eliminate all spurious wakeups.
It is my understanding that eliminating (as opposed to minimizing) spurious
wakeups is rarely feasible.
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk