QThread::Priority for QThreadPool or QRunnable?
-
Hi, I have a class that contains it's own
QThreadPool
object and I run instances ofQRunnable
using this thread-pool object. In my application, there are two instances of this class and for one type I want to run theQThreadPool
-QRunnable
combo withQThread::HighPriority
and for another instance, I want to run it withQThread::LowPriority
. Is it possible? -
See https://bugreports.qt.io/browse/QTBUG-3481 - feel free to provide a patch, doesn't look that complicated
-
@Christian-Ehrlicher Thanks! I am not so knowledgeable in Qt/C++ to provide a patch, but if I come up with a workaround I will definitely post it here :)
-
Hi,
@CJha said in QThread::Priority for QThreadPool or QRunnable?:
@Christian-Ehrlicher Thanks! I am not so knowledgeable in Qt/C++ to provide a patch, but if I come up with a workaround I will definitely post it here :)
You do not need to have 10+ years in C++ to provide a patch. There's now one progress that you can check from the bug report. You'll see that it is not something arcane so if you would like to participate to Qt, do not hesitate to take a look at the open issues, you will likely find something suitable for you to have some fun fixing.