Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 75436 invoked from network); 24 Jul 2007 18:43:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2007 18:43:08 -0000 Received: (qmail 27206 invoked by uid 500); 24 Jul 2007 18:43:08 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 27182 invoked by uid 500); 24 Jul 2007 18:43:07 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 27149 invoked by uid 99); 24 Jul 2007 18:43:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 11:43:07 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 11:43:05 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 215751A981A; Tue, 24 Jul 2007 11:42:45 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r559157 - /activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/util/Config.h Date: Tue, 24 Jul 2007 18:42:44 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070724184245.215751A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tabish Date: Tue Jul 24 11:42:41 2007 New Revision: 559157 URL: http://svn.apache.org/viewvc?view=rev&rev=559157 Log: http://issues.apache.org/activemq/browse/AMQCPP-103 Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/util/Config.h Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/util/Config.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/util/Config.h?view=diff&rev=559157&r1=559156&r2=559157 ============================================================================== --- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/util/Config.h (original) +++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/util/Config.h Tue Jul 24 11:42:41 2007 @@ -89,31 +89,20 @@ // Define a class to hanlde APR initialization and termination, then declare a global // static instance that will cause the library to only be initialized once. +#include #include #include class _APR_LIBRARY { -private: - - // Global APR memory pool - apr_pool_t* memoryPool; - public: _APR_LIBRARY() { apr_initialize(); - apr_pool_create( &memoryPool, NULL ); } ~_APR_LIBRARY() { - apr_pool_destroy( memoryPool ); apr_terminate(); } - - apr_pool_t* getMemoryPool() const{ - return memoryPool; - } - }; static _APR_LIBRARY _decaf_apr;