00001 00031 #include "linden_common.h" 00032 00033 #include "llcommon.h" 00034 #include "llthread.h" 00035 00036 //static 00037 BOOL LLCommon::sAprInitialized = FALSE; 00038 00039 //static 00040 void LLCommon::initClass() 00041 { 00042 LLMemory::initClass(); 00043 if (!sAprInitialized) 00044 { 00045 ll_init_apr(); 00046 sAprInitialized = TRUE; 00047 } 00048 LLTimer::initClass(); 00049 LLThreadSafeRefCount::initClass(); 00050 // LLWorkerThread::initClass(); 00051 // LLFrameCallbackManager::initClass(); 00052 } 00053 00054 //static 00055 void LLCommon::cleanupClass() 00056 { 00057 // LLFrameCallbackManager::cleanupClass(); 00058 // LLWorkerThread::cleanupClass(); 00059 LLThreadSafeRefCount::cleanupClass(); 00060 LLTimer::cleanupClass(); 00061 if (sAprInitialized) 00062 { 00063 ll_cleanup_apr(); 00064 sAprInitialized = FALSE; 00065 } 00066 LLMemory::cleanupClass(); 00067 }