summaryrefslogtreecommitdiffstats
path: root/src/corelib/concurrent
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2010-02-24 09:05:22 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2010-02-24 09:05:22 (GMT)
commitc4fa3331a4429f83581137315a374836e2b8c594 (patch)
tree188d9841eda96ad825c77f960b1420830d333a5e /src/corelib/concurrent
parenta87b7b965a68fbb3171ffedeb3354f14c60d1751 (diff)
downloadQt-c4fa3331a4429f83581137315a374836e2b8c594.zip
Qt-c4fa3331a4429f83581137315a374836e2b8c594.tar.gz
Qt-c4fa3331a4429f83581137315a374836e2b8c594.tar.bz2
Doc: QFutureWatcher: specify that calls to setFuture should happen after the connections
Reviewed-by: Morten Sorvig
Diffstat (limited to 'src/corelib/concurrent')
-rw-r--r--src/corelib/concurrent/qfuturewatcher.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/concurrent/qfuturewatcher.cpp b/src/corelib/concurrent/qfuturewatcher.cpp
index 3065205..2213725 100644
--- a/src/corelib/concurrent/qfuturewatcher.cpp
+++ b/src/corelib/concurrent/qfuturewatcher.cpp
@@ -499,6 +499,12 @@ void QFutureWatcherBasePrivate::sendCallOutEvent(QFutureCallOutEvent *event)
/*! \fn void QFutureWatcher::setFuture(const QFuture<T> &future)
Starts watching the given \a future.
+
+ One of the signal might be emit for the current state of the \a future.
+ (For example, if the future is already stopped, the finished signal will be emit)
+
+ To avoid race condition, it is important to call this function after doing
+ the connections.
*/
/*! \fn QFuture<T> QFutureWatcher::future() const