summaryrefslogtreecommitdiff
path: root/indra/llcommon/llcommon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/llcommon.cpp')
-rw-r--r--indra/llcommon/llcommon.cpp43
1 files changed, 43 insertions, 0 deletions
diff --git a/indra/llcommon/llcommon.cpp b/indra/llcommon/llcommon.cpp
new file mode 100644
index 0000000000..ff810abfa9
--- /dev/null
+++ b/indra/llcommon/llcommon.cpp
@@ -0,0 +1,43 @@
+/**
+ * @file llcommon.cpp
+ *
+ * Copyright (c) 2006-$CurrentYear$, Linden Research, Inc.
+ * $License$
+ */
+
+#include "linden_common.h"
+
+#include "llcommon.h"
+
+//static
+BOOL LLCommon::sAprInitialized = FALSE;
+
+//static
+void LLCommon::initClass()
+{
+ LLMemory::initClass();
+ if (!sAprInitialized)
+ {
+ ll_init_apr();
+ sAprInitialized = TRUE;
+ }
+ LLTimer::initClass();
+ LLThreadSafeRefCount::initClass();
+// LLWorkerThread::initClass();
+// LLFrameCallbackManager::initClass();
+}
+
+//static
+void LLCommon::cleanupClass()
+{
+// LLFrameCallbackManager::cleanupClass();
+// LLWorkerThread::cleanupClass();
+ LLThreadSafeRefCount::cleanupClass();
+ LLTimer::cleanupClass();
+ if (sAprInitialized)
+ {
+ ll_cleanup_apr();
+ sAprInitialized = FALSE;
+ }
+ LLMemory::cleanupClass();
+}