mardi 25 avril 2017

C++11 thread: how to wait(join) for any of the given threads to complete?

For example, I have two threads, t1 and t2. I want to wait for t1 or t2 to finish. Is this possible?

If I have a series of threads, say, a vector<thread>, how can I do it?

Aucun commentaire:

Enregistrer un commentaire