diff options
author | Nick Shaforostoff <shafff@ukr.net> | 2014-06-16 18:50:12 +0300 |
---|---|---|
committer | Nick Shaforostoff <shafff@ukr.net> | 2014-12-24 15:01:36 +0100 |
commit | 5b11e43e9f7551b9cb1ea7a6effdcab4bfa6b8c9 (patch) | |
tree | 8a51cb9b664e355ec9e89ad648f20344eaea10d9 /src/corelib/thread/qthreadpool.h | |
parent | 6475462c6fdf28f40a35cb6926b2f1f58187eb8a (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.h | 1 |
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 |