You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2012/11/02 16:45:08 UTC

svn commit: r1405014 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf: internal/util/concurrent/ThreadLocalImpl.h lang/ThreadLocal.h

Author: tabish
Date: Fri Nov  2 15:45:08 2012
New Revision: 1405014

URL: http://svn.apache.org/viewvc?rev=1405014&view=rev
Log:
Hide copy and assignment operators 

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/ThreadLocalImpl.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/ThreadLocalImpl.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/ThreadLocalImpl.h?rev=1405014&r1=1405013&r2=1405014&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/ThreadLocalImpl.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/ThreadLocalImpl.h Fri Nov  2 15:45:08 2012
@@ -30,6 +30,11 @@ namespace concurrent {
 
         int tlsKey;
 
+    private:
+
+        ThreadLocalImpl(const ThreadLocalImpl&);
+        ThreadLocalImpl& operator= (const ThreadLocalImpl&);
+
     public:
 
         ThreadLocalImpl();

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h?rev=1405014&r1=1405013&r2=1405014&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h Fri Nov  2 15:45:08 2012
@@ -41,6 +41,11 @@ namespace lang {
      */
     template <typename E>
     class ThreadLocal : protected decaf::internal::util::concurrent::ThreadLocalImpl {
+    private:
+
+        ThreadLocal(const ThreadLocal&);
+        ThreadLocal& operator= (const ThreadLocal&);
+
     public:
 
         /**