jeudi 20 février 2020

What is the purpose of std::thread::swap?

From what I understand, std::thread::swap swaps the thread ids of two threads. It doesn't change thread local storage or affect execution of either of the threads in any way. What is the purpose behind it? How/where/why is it used?

Aucun commentaire:

Enregistrer un commentaire