Talk:cpp/thread/condition variable any/wait for

Isn't the code after "2) Equivalent to" incorrect? If that really is what it does, then it will potentially wait up to (rel_time * number_of_spurious_wakeups). Isn't it missing a recalculation of rel_time if the predicate return value indicates that it needs to keep waiting? 174.115.156.57 05:56, 10 February 2014 (PST)
 * Good point: the standard defines wait_for in terms of wait_until for now+rel_time, I'll edit to match --Cubbi (talk) 06:36, 10 February 2014 (PST)