Boost logo

Boost :

From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2007-12-02 15:23:36

Alexander Terekhov <terekhov <at>> writes:
> Anthony Williams wrote:
> [...]
> > Waitable timers. According to the docs, when you specify an absolute timeout
> > for a timer it tracks clock changes.
> That isn't really helpful given that win32 waitable timers don't
> synchronize with condvar waiters by locking associated mutexes.

The point is that a condvar waiter doing a timed wait can use the waitable timer
as part of a WaitForMultipleObjects call waiting on the sync objects internal to
the cond var, rather than using a timeout: if the waitable timer is triggered
then the specified absolute time has been reached, and the call has timed out.

Of course, the condvar implementation then needs to handle relocking the mutexes.


Boost list run by bdawes at, gregod at, cpdaniel at, john at