Unsolved I use QtConcurrent to create threads, how do I set the thread priority?
-
I use QtConcurrent to create threads, how do I set the thread priority?
m_future_Parking = QtConcurrent :: run (this, & CProduceCore :: threadfun_Parking); -
@firecat I don't think you can. If you want to set thread priority use QThread
-
@firecat
If you want to do this, it's not so easy
https://www.qtcentre.org/threads/28065-Control-the-priority-of-QtConcurrent-run()See the following for a possibility (nasty):
https://wiki.qt.io/Set_Thread_Priority_In_QtConcurrent