summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qthreadpool.h
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2024-10-04 15:55:38 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2024-11-18 18:33:17 +0100
commite58d714c4750b49bf255a0f42b63118534df8a24 (patch)
treefd4b8531098fa462ee18e67f56715339a6798050 /src/corelib/thread/qthreadpool.h
parent35066b28c86cb0eb8880b6a4af84f8d02ff7aff0 (diff)
QThreadPool: Add Quality of Service API
Same limitation as setting priority; it only applies to threads that start after the call. Change-Id: I0f77467a76ce2f4e7743d04fde344ef08cd8dbb8 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/thread/qthreadpool.h')
-rw-r--r--src/corelib/thread/qthreadpool.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/thread/qthreadpool.h b/src/corelib/thread/qthreadpool.h
index 0640f415872..d471bb39d83 100644
--- a/src/corelib/thread/qthreadpool.h
+++ b/src/corelib/thread/qthreadpool.h
@@ -72,6 +72,9 @@ public:
void reserveThread();
void releaseThread();
+ void setServiceLevel(QThread::QualityOfService serviceLevel);
+ QThread::QualityOfService serviceLevel() const;
+
QT_CORE_INLINE_SINCE(6, 8)
bool waitForDone(int msecs);
bool waitForDone(QDeadlineTimer deadline = QDeadlineTimer::Forever);