[Libreoffice-commits] core.git: include/comphelper

Matúš Kukan matus.kukan at collabora.com
Tue Nov 4 04:20:20 PST 2014


 include/comphelper/threadpool.hxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 48fd93eccdb704f4fc5be24ac1d658e6c3cba37c
Author: Matúš Kukan <matus.kukan at collabora.com>
Date:   Tue Nov 4 13:17:08 2014 +0100

    Make comphelper::ThreadPool explicitly noncopyable
    
    Change-Id: Ie57d0194418dd17a4c83e2859d6a85129c4f95e6

diff --git a/include/comphelper/threadpool.hxx b/include/comphelper/threadpool.hxx
index 231a735..b5606e0 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


More information about the Libreoffice-commits mailing list