summaryrefslogtreecommitdiff
path: root/include/comphelper/threadpool.hxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-10-16 08:46:11 -0300
committerCaolán McNamara <caolanm@redhat.com>2015-03-12 11:41:52 +0000
commit230a02dbb5b83ff4af1a31489e340f1fabb46096 (patch)
tree4b1e2919e0b5edcd697704e9c7afcbf1f8c1260b /include/comphelper/threadpool.hxx
parent86a547e33bab2a89513385c5af535a6099526616 (diff)
vcl: parallelize image scaling.
(cherry picked from commit ffdf0ed4cd76188e780eceee4333f90a00217f9d) Change-Id: Ia452487c0c8c66a35c4b9fba225348bdef1a27f7
Diffstat (limited to 'include/comphelper/threadpool.hxx')
-rw-r--r--include/comphelper/threadpool.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/comphelper/threadpool.hxx b/include/comphelper/threadpool.hxx
index 1aa4733e6012..88375ab58c9d 100644
--- a/include/comphelper/threadpool.hxx
+++ b/include/comphelper/threadpool.hxx
@@ -45,6 +45,9 @@ public:
/// wait until all queued tasks are completed
void waitUntilEmpty();
+ /// return the number of live worker threads
+ sal_Int32 getWorkerCount() const { return maWorkers.size(); }
+
private:
ThreadPool(const ThreadPool&) SAL_DELETED_FUNCTION;
ThreadPool& operator=(const ThreadPool&) SAL_DELETED_FUNCTION;