
18 Jul
2005
18 Jul
'05
11:57 a.m.
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.