vendredi 23 janvier 2015

std::future::wait_for spurious wakeup?

std::condition_variable::wait_for takes an optional predicate to internally handle spurious wakeups. std::future::wait_for does not have any such optional arguments. Is spurious wakeup something I need to guard against if I want to make sure I wait at least as long as the specified timeout, or is it already handled in some other way?


Aucun commentaire:

Enregistrer un commentaire