GME
13
|
00001 00023 #include "../StdAfx.h" 00024 00025 #if(USESVN) 00026 00027 #include "Pool.h" 00028 #include "Util.h" 00029 //#include "JNIMutex.h" 00030 //#include "JNICriticalSection.h" 00031 #include "svn_pools.h" 00032 00037 Pool::Pool() 00038 { 00039 //JNICriticalSection criticalSection(*JNIUtil::getGlobalPoolMutex()); 00040 m_pool = svn_pool_create(NULL); 00041 } 00042 00043 Pool::Pool(Pool& parent) 00044 { 00045 //JNICriticalSection criticalSection(*JNIUtil::getGlobalPoolMutex()); 00046 m_pool = svn_pool_create(parent.pool()); 00047 } 00048 00052 Pool::~Pool() 00053 { 00054 //JNICriticalSection criticalSection(*JNIUtil::getGlobalPoolMutex()); 00055 if(m_pool) 00056 { 00057 svn_pool_destroy(m_pool); 00058 } 00059 00060 } 00061 00066 apr_pool_t * Pool::pool() const 00067 { 00068 return m_pool; 00069 } 00070 00071 #endif