Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-53357

Qt on QNX misunderstands the default OS priority (which is actually 10)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.5.0
    • Core: Threads
    • None
    • QNX, ARM

    Description

      Starting a QThread using one of the QThread::Priority enum sets the priorities as follows on QNX:

      enum value priority
      QThread::IdlePriority 1
      QThread::LowestPriority 43
      QThread::LowPriority 85
      QThread::NormalPriority 128
      QThread::HighPriority 170
      QThread::HighestPriority 212
      QThread::TimeCriticalPriority 255

      According to the docs, QThread::NormalPriority should be "the default priority of the operating system." However, the default priority in QNX is 10 (http://www.qnx.com/developers/articles/article_295_1.html). I suspect these priorities need to be changed.
      This is probably the wrong place to suggest it, but it would probably be more helpful for most situations if there were additional enum values for setting a relative priority (e.g. QThread::HigherPriority and QThread::LowerPriority, etc.) which would offset the inherited priority.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jmcdonnell James McDonnell
            brianmarriage Brian Marriage
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes