activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r594140 - in /activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal: AprPool.cpp AprPool.h
Date Mon, 12 Nov 2007 13:55:52 GMT
Author: tabish
Date: Mon Nov 12 05:55:51 2007
New Revision: 594140

URL: http://svn.apache.org/viewvc?rev=594140&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103

Moving the AprPool getAprPool method's source to the cpp to avoid any inlining issues.

Modified:
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/AprPool.cpp
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/AprPool.h

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/AprPool.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/AprPool.cpp?rev=594140&r1=594139&r2=594140&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/AprPool.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/AprPool.cpp Mon Nov 12 05:55:51
2007
@@ -57,3 +57,17 @@
         apr_pool_clear( aprPool );
     }
 }
+
+////////////////////////////////////////////////////////////////////////////////
+apr_pool_t* AprPool::getAprPool() const {
+
+    // Creates a single static instance that will on the first call
+    // init apr and remain in memory until we shutdown and then free
+    // the apr resources.
+    static AprRuntime aprRuntime;
+
+    // Ensure that the pool has been allocated.
+    allocatePool();
+
+    return aprPool;
+}

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/AprPool.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/AprPool.h?rev=594140&r1=594139&r2=594140&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/AprPool.h (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/AprPool.h Mon Nov 12 05:55:51
2007
@@ -48,18 +48,7 @@
          * Gets the internal APR Pool.
          * @returns the internal APR pool
          */
-        apr_pool_t* getAprPool() const {
-
-            // Creates a single static instance that will on the first call
-            // init apr and remain in memory until we shutdown and then free
-            // the apr resources.
-            static AprRuntime aprRuntime;
-
-            // Ensure that the pool has been allocated.
-            allocatePool();
-
-            return aprPool;
-        }
+        apr_pool_t* getAprPool() const;
 
         /**
          * Clears data that was allocated by this pool.  Users should call this



Mime
View raw message