summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2011-02-02 09:03:51 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-02-02 09:13:13 (GMT)
commit216b29f0c976405c718c7bb8e24699d368baac7e (patch)
treed9d3a04fd0a6c2ec439cc82a3ecdaed0d05b7bc6 /src
parent9fa392cdb528db0bb5073892484c809e99ae27b3 (diff)
downloadQt-216b29f0c976405c718c7bb8e24699d368baac7e.zip
Qt-216b29f0c976405c718c7bb8e24699d368baac7e.tar.gz
Qt-216b29f0c976405c718c7bb8e24699d368baac7e.tar.bz2
document that QThread::exit will exit future event loops
Reviewed-by: Brad
Diffstat (limited to 'src')
-rw-r--r--src/corelib/thread/qthread.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/corelib/thread/qthread.cpp b/src/corelib/thread/qthread.cpp
index f368192..8223cff 100644
--- a/src/corelib/thread/qthread.cpp
+++ b/src/corelib/thread/qthread.cpp
@@ -509,10 +509,12 @@ int QThread::exec()
Note that unlike the C library function of the same name, this
function \e does return to the caller -- it is event processing
- that stops.
-
- This function does nothing if the thread does not have an event
- loop.
+ that stops.
+
+ No QEventLoops will be started anymore in this thread until
+ QThread::exec() has been called again. If the eventloop in QThread::exec()
+ is not running then the next call to QThread::exec() will also return
+ immediately.
\sa quit() QEventLoop
*/