Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-07-18 06:57:09

Georgi Yaralov wrote:
>> Can anybody shed a light on this?
>> // 23 May 01 WEKEMPF Removed "duration" timed_waits, as they are
>> too
>> // difficult to use with spurious wakeups?
>> I need relative time waits and this comment made me wary.

Since condition waits should always be done in a while loop, it's too easy
to miss that the relative timeout needs to be recomputed on each iteration.
Absolute timeouts don't have this problem.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at