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

discrepancy between PTHREAD_POOL_SIZE and QThreadPrivate::idealThreadCount

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.6, 6.7.1, 6.8.0 FF
    • 6.8
    • Core: Other
    • None
    • windows 11, visual studio 2022, computer with 20 logical cores, edge or chrome
    • WebAssembly
    • 1a57c3866 (dev), 18c4841ec (6.7), 772531c8a (tqtc/lts-6.5)

    Description

      QCoreApplication sets QThreadPrivate::idealThreadCount to navigator.hardwareConcurrency

      wasm.prf sets PTHREAD_POOL_SIZE to 4.

       

      This causes the qtdoc/examples/demos/dice example to not start.

       

      Adding

         QT_WASM_PTHREAD_POOL_SIZE=navigator.hardwareConcurrency+2

      and

        set(QT_WASM_PTHREAD_POOL_SIZE navigator.hardwareConcurrency+2)

      to dice.pro/CMakeLists.txt  fixes the dice demo

       

      Attachments

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

        Activity

          People

            evenandersen Even Oscar Andersen
            evenandersen Even Oscar Andersen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: