If std::condition_variable
can be signaled due to the spurious wakeups (and we can't be sure that the condition we need is really satisfied), why do C++ Standard Library provide the overloads of wait()
method without a predicate? What are the scenarios when such behaviour can be used?
Aucun commentaire:
Enregistrer un commentaire