summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qthreadpool.h
diff options
context:
space:
mode:
authorNick Shaforostoff <shafff@ukr.net>2014-06-16 18:50:12 +0300
committerNick Shaforostoff <shafff@ukr.net>2014-12-24 15:01:36 +0100
commit5b11e43e9f7551b9cb1ea7a6effdcab4bfa6b8c9 (patch)
tree8a51cb9b664e355ec9e89ad648f20344eaea10d9 /src/corelib/thread/qthreadpool.h
parent6475462c6fdf28f40a35cb6926b2f1f58187eb8a (diff)
QThreadPool::cancel() to remove individual jobs from the job queue.
[ChangeLog][QtCore][QThreadPool] Added QThreadPool::cancel() which allows removing from the job queue a job that hasn't been started yet. Change-Id: Ib8f1c1f32a34f5eec8338c641d820b928e470164 Reviewed-by: Nick Shaforostoff <shafff@ukr.net> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/thread/qthreadpool.h')
-rw-r--r--src/corelib/thread/qthreadpool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/thread/qthreadpool.h b/src/corelib/thread/qthreadpool.h
index e4d23cc200..c8cc5dfd89 100644
--- a/src/corelib/thread/qthreadpool.h
+++ b/src/corelib/thread/qthreadpool.h
@@ -77,6 +77,7 @@ public:
bool waitForDone(int msecs = -1);
void clear();
+ void cancel(QRunnable *runnable);
};
QT_END_NAMESPACE