mercredi 24 juillet 2019

Is it right to use std::condition_variable::wait inside a while loop?

I am currently working on the std::condition_variable. Is it right to use std::condition_variable::wait() inside the while loop and not to rely on the std::condition_variable::notify() at all?

Should each std::condition_variable::wait() mandatorily have std::condition_variable::notify() ?

Aucun commentaire:

Enregistrer un commentaire