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 2009/03/04 00:27:10 UTC
svn commit: r749838 - in
/activemq/activemq-cpp/branches/activemq-cpp-2.x/src/main/decaf:
internal/AprPool.h util/concurrent/Mutex.h
Author: tabish
Date: Tue Mar 3 23:27:10 2009
New Revision: 749838
URL: http://svn.apache.org/viewvc?rev=749838&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQCPP-227
Make mutex and apr pool class non copyable.
Modified:
activemq/activemq-cpp/branches/activemq-cpp-2.x/src/main/decaf/internal/AprPool.h
activemq/activemq-cpp/branches/activemq-cpp-2.x/src/main/decaf/util/concurrent/Mutex.h
Modified: activemq/activemq-cpp/branches/activemq-cpp-2.x/src/main/decaf/internal/AprPool.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/branches/activemq-cpp-2.x/src/main/decaf/internal/AprPool.h?rev=749838&r1=749837&r2=749838&view=diff
==============================================================================
--- activemq/activemq-cpp/branches/activemq-cpp-2.x/src/main/decaf/internal/AprPool.h (original)
+++ activemq/activemq-cpp/branches/activemq-cpp-2.x/src/main/decaf/internal/AprPool.h Tue Mar 3 23:27:10 2009
@@ -38,6 +38,11 @@
*/
mutable apr_pool_t* aprPool;
+ protected:
+
+ AprPool( const AprPool& source );
+ AprPool& operator= ( const AprPool& source );
+
public:
AprPool();
Modified: activemq/activemq-cpp/branches/activemq-cpp-2.x/src/main/decaf/util/concurrent/Mutex.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/branches/activemq-cpp-2.x/src/main/decaf/util/concurrent/Mutex.h?rev=749838&r1=749837&r2=749838&view=diff
==============================================================================
--- activemq/activemq-cpp/branches/activemq-cpp-2.x/src/main/decaf/util/concurrent/Mutex.h (original)
+++ activemq/activemq-cpp/branches/activemq-cpp-2.x/src/main/decaf/util/concurrent/Mutex.h Tue Mar 3 23:27:10 2009
@@ -56,6 +56,11 @@
volatile unsigned long lock_owner;
volatile unsigned long lock_count;
+ protected:
+
+ Mutex( const Mutex& source );
+ Mutex& operator= ( const Mutex& source );
+
public:
/**