jeudi 23 avril 2015

C++ condition variable and wait

I am trying to figure out what this code line does. Will it suspend or wait or run the code while count is less than 6?

unique_lock<mutex> lck(mtx);
 cv.wait(lck, [this]() { return count <6; });

Aucun commentaire:

Enregistrer un commentaire