jeudi 25 juillet 2019

Is it possible to set Thread Priority using std::thread constructor?

I was wondering if we could set the priority for a thread during std::thread construction. As long as I have seen from the CppReference, I do not find any constructor to set priority. If so, then how do I set the priority in platforms like Windows and Unix.

Do we have a better/unified way to set the priority?

Aucun commentaire:

Enregistrer un commentaire