I am a new-comer to Qt and would like to know about recommended approaches towards custom scheduling of threads managed by QThread instances.
I would like to have a scheduler thread which, in response to change in application state, puts certain threads to sleep or changes their priority. The scheduling should be preemptive as in I should be able to put to sleep certain workers (which may be waiting on a mutex) and invoke them later.
What I am particularly curious about is why the QThread::sleep and related functions are protected ?
If the kind of fine grained control over scheduling can't be obtained through Qt threading classes then I would like to know about alternative possibilities.