activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r674465 - in /activemq/activemq-cpp/trunk/src/main/activemq/support: InitDirector.cpp InitDirector.h
Date Mon, 07 Jul 2008 12:06:08 GMT
Author: tabish
Date: Mon Jul  7 05:06:07 2008
New Revision: 674465

URL: http://svn.apache.org/viewvc?rev=674465&view=rev
Log:
Attempting to ensure that APR gets initialized in the correct order.

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/support/InitDirector.cpp
    activemq/activemq-cpp/trunk/src/main/activemq/support/InitDirector.h

Modified: activemq/activemq-cpp/trunk/src/main/activemq/support/InitDirector.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/support/InitDirector.cpp?rev=674465&r1=674464&r2=674465&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/support/InitDirector.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/support/InitDirector.cpp Mon Jul  7 05:06:07
2008
@@ -17,6 +17,7 @@
 #include "InitDirector.h"
 
 #include <decaf/util/logging/LogWriter.h>
+#include <decaf/internal/AprPool.h>
 #include <activemq/transport/IOTransportFactory.h>
 #include <activemq/transport/MockTransportFactory.h>
 #include <activemq/transport/filters/AsyncSendTransportFactory.h>
@@ -36,6 +37,8 @@
 InitDirector::InitDirector() {
 
     if( refCount == 0 ) {
+        decaf::internal::AprPool initPools;
+        initPools.getAprPool();
         connector::stomp::StompConnectorFactory::getInstance();
         connector::openwire::OpenWireConnectorFactory::getInstance();
         transport::filters::TcpTransportFactory::getInstance();

Modified: activemq/activemq-cpp/trunk/src/main/activemq/support/InitDirector.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/support/InitDirector.h?rev=674465&r1=674464&r2=674465&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/support/InitDirector.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/support/InitDirector.h Mon Jul  7 05:06:07
2008
@@ -23,7 +23,7 @@
     /*
      * Create a static instance of this class to init all static data
      * in order in this library.
-     * Each package that needs initalization should create a set of
+     * Each package that needs initialization should create a set of
      * functions that control init and cleanup.  Each should be called
      * by this class init in the constructor and cleanup in the
      * destructor



Mime
View raw message