summaryrefslogtreecommitdiffstats
path: root/src/corelib/concurrent/qthreadpool.h
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@nokia.com>2010-02-22 13:53:52 (GMT)
committerPierre Rossi <pierre.rossi@nokia.com>2010-03-31 14:33:21 (GMT)
commita0df2ac07c75882618b40657e1485dda3204880e (patch)
tree76ca0fc16b272b8dd6ddd493ab37a3b0a2a61d13 /src/corelib/concurrent/qthreadpool.h
parent524ee26ed5202aa45d337a0a852a2eb2896ac205 (diff)
downloadQt-a0df2ac07c75882618b40657e1485dda3204880e.zip
Qt-a0df2ac07c75882618b40657e1485dda3204880e.tar.gz
Qt-a0df2ac07c75882618b40657e1485dda3204880e.tar.bz2
adds a timeout option to QThreadPool::waitForDone();
Task-number: QTBUG-2695 Reviewed-by: Benjamin Poulain
Diffstat (limited to 'src/corelib/concurrent/qthreadpool.h')
-rw-r--r--src/corelib/concurrent/qthreadpool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/concurrent/qthreadpool.h b/src/corelib/concurrent/qthreadpool.h
index cc1e059..9895c41 100644
--- a/src/corelib/concurrent/qthreadpool.h
+++ b/src/corelib/concurrent/qthreadpool.h
@@ -84,7 +84,7 @@ public:
void reserveThread();
void releaseThread();
- void waitForDone();
+ void waitForDone(int msecs = -1);
};
QT_END_NAMESPACE