summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qthread.cpp
diff options
context:
space:
mode:
authorMoss Heim <moss.heim@qt.io>2025-10-14 10:36:18 +0200
committerMoss Heim <moss.heim@qt.io>2025-10-14 16:40:21 +0200
commite5b6e89bb6bcf9f3de5a55d60912864ab9525be9 (patch)
tree8523c81eac92e7f0a0be93c71e30f721eba7ca82 /src/corelib/thread/qthread.cpp
parente381e5087aae67c125496ce672f43d9cfba2032d (diff)
Doc: Add more info to QThread::requestInterruption
Document its behavior on main thread & non-running threads. Pick-to: 6.8 6.9 6.10 Change-Id: I0857217effa727971fb532adf70e892d205036dd Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/thread/qthread.cpp')
-rw-r--r--src/corelib/thread/qthread.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp
index ccd944a0824..3e08df2b5ac 100644
--- a/src/corelib/thread/qthread.cpp
+++ b/src/corelib/thread/qthread.cpp
@@ -1291,6 +1291,9 @@ bool QThread::event(QEvent *event)
This function does not stop any event loop running on the thread and
does not terminate it in any way.
+ This function has no effect on the main thread, and does nothing if the thread
+ is not currently running.
+
\sa isInterruptionRequested()
*/