diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-12-02 15:52:28 +0100 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-12-03 19:48:19 +0100 |
| commit | 9bb9016b808bd3c708a22832099d06dbaaa0839d (patch) | |
| tree | eda0e2f7a1c25fa6e4af1559afdf73928b56a0dc /src/corelib/thread/qthread.cpp | |
| parent | 54c2d6ded779c3b9843fa18535b79ababa0d1a74 (diff) | |
QThread: document the QualityOfService enum
It's new in Qt 6.9, and used in the setter and getter APIs.
Change-Id: Iefdd7d9256f8c4b465416967b8bdd71e9bb5941c
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/thread/qthread.cpp')
| -rw-r--r-- | src/corelib/thread/qthread.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp index 64a6645db21..61294deee25 100644 --- a/src/corelib/thread/qthread.cpp +++ b/src/corelib/thread/qthread.cpp @@ -550,6 +550,27 @@ uint QThread::stackSize() const } /*! + \enum QThread::QualityOfService + \since 6.9 + + This enum describes the quality of service level of a thread, and provides + the scheduler with information about the kind of work that the thread + performs. On platforms with different CPU profiles, or with the ability to + clock certain cores of a CPU down, this allows the scheduler to select or + configure a CPU core with suitable performance and energy characteristics + for the thread. + + \value Auto The default value, leaving it to the scheduler to decide which + CPU core to run the thread on. + \value High The scheduler should run this thread to a high-performance CPU + core. + \value Eco The scheduler should run this thread to an energy-efficient CPU + core. + + \sa Priority, serviceLevel() +*/ + +/*! \since 6.9 Set the Quality of Service level of the thread object to \a serviceLevel. |
