diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-04-01 11:04:44 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-04-06 08:24:40 (GMT) |
commit | 638b61dec0d335b12d48fe561b19a0f0f6ef83a3 (patch) | |
tree | 8a48f519319f2bf41ead355c4723a4833c275487 | |
parent | c350892f55a1d8633be54f09e6e4596f4687bc89 (diff) | |
download | Qt-638b61dec0d335b12d48fe561b19a0f0f6ef83a3.zip Qt-638b61dec0d335b12d48fe561b19a0f0f6ef83a3.tar.gz Qt-638b61dec0d335b12d48fe561b19a0f0f6ef83a3.tar.bz2 |
QThread::start(): priority has no effect on Linux systems
The default scheduling policy on Linux doesn't allow specifying thread
priorities, so the priority passed to start() and setPriority() has no
effect. Document this.
Task number: 249997
Reviewed-by: Kavindra Devi Palaraja <kavindra.palaraja@nokia.com>
-rw-r--r-- | src/corelib/thread/qthread.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp index 7f87897..2fb6335 100644 --- a/src/corelib/thread/qthread.cpp +++ b/src/corelib/thread/qthread.cpp @@ -297,6 +297,12 @@ void QAdoptedThread::run() priority parameter. If the thread is already running, this function does nothing. + The effect of the \a priority parameter is dependent on the + operating system's scheduling policy. In particular, the \a priority + will be ignored on systems that do not support thread priorities + (such as on Linux, see http://linux.die.net/man/2/sched_setscheduler + for more details). + \sa run(), terminate() */ @@ -590,6 +596,12 @@ void QThread::cleanup() The \a priority argument can be any value in the \c QThread::Priority enum except for \c InheritPriorty. + The effect of the \a priority parameter is dependent on the + operating system's scheduling policy. In particular, the \a priority + will be ignored on systems that do not support thread priorities + (such as on Linux, see http://linux.die.net/man/2/sched_setscheduler + for more details). + \sa Priority priority() start() */ |