On further investigation I realise that priority is used in two different ways. QThread::setPriority() sets the amount of time the operating system will devote to that thread, whereas the priority passed to QThreadPool::start() simply controls the order in which the QRunnables are processed by the QThreadPool.
So, further to my previous question, is it possible to set the operating system priority of the threads in a QThreadPool, or to have greater control over which Runnables are executed on which priority threads? I have some tasks which are background tasks and some where I want the results soon.
Any ideas?
Bookmarks