From 9bb9016b808bd3c708a22832099d06dbaaa0839d Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Mon, 2 Dec 2024 15:52:28 +0100 Subject: [PATCH] QThread: document the QualityOfService enum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's new in Qt 6.9, and used in the setter and getter APIs. Change-Id: Iefdd7d9256f8c4b465416967b8bdd71e9bb5941c Reviewed-by: MÃ¥rten Nordheim --- src/corelib/thread/qthread.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 @@ -549,6 +549,27 @@ uint QThread::stackSize() const return d->stackSize; } +/*! + \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