Boost logo

Boost Users :

Subject: Re: [Boost-users] [chrono][thread] Best way to wait?
From: Klaim - Joël Lamotte (mjklaim_at_[hidden])
Date: 2013-03-29 11:45:39


On Fri, Mar 29, 2013 at 4:37 PM, Steven Watanabe <watanabesj_at_[hidden]>wrote:

> A thread waiting on a condition variable (a) can
> be explicitly notified and (b) may wake up before
> the time has expired (spurious wakeups). If you
> just want to sleep for a fixed amount of time, then
> sleep_for is the right tool.
>

My understanding is that sleep_for can wait more than the time wanted,
right?
So basically a condition_variable can wait less, while sleep_for can wait a
bit more?

Joel Lamotte



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net