summaryrefslogtreecommitdiff
path: root/include/comphelper/threadpool.hxx
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-11-04 13:17:08 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2014-11-04 13:18:59 +0100
commit48fd93eccdb704f4fc5be24ac1d658e6c3cba37c (patch)
tree6b5bbbfedfef8f2c2c4edf1df2104912e4970fa8 /include/comphelper/threadpool.hxx
parent966daa8e278bd0aef180b2d87b264e10c3a82afd (diff)
Make comphelper::ThreadPool explicitly noncopyable
Change-Id: Ie57d0194418dd17a4c83e2859d6a85129c4f95e6
Diffstat (limited to 'include/comphelper/threadpool.hxx')
-rw-r--r--include/comphelper/threadpool.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/comphelper/threadpool.hxx b/include/comphelper/threadpool.hxx
index 231a735d9107..b5606e027f05 100644
--- a/include/comphelper/threadpool.hxx
+++ b/include/comphelper/threadpool.hxx
@@ -15,6 +15,7 @@
#include <osl/mutex.hxx>
#include <osl/conditn.hxx>
#include <rtl/ref.hxx>
+#include <boost/noncopyable.hpp>
#include <vector>
#include <comphelper/comphelperdllapi.h>
@@ -29,7 +30,7 @@ public:
};
/// A very basic thread pool implementation
-class COMPHELPER_DLLPUBLIC ThreadPool
+class COMPHELPER_DLLPUBLIC ThreadPool: private boost::noncopyable
{
public:
/// returns a pointer to a shared pool with optimal thread