summaryrefslogtreecommitdiff
path: root/indra/llcommon/llcommon.cpp
blob: 52fcaa3c193115d30554cfaab9425a729b9c2def (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/** 
 * @file llcommon.cpp
 *
 * Copyright (c) 2006-$CurrentYear$, Linden Research, Inc.
 * $License$
 */

#include "linden_common.h"

#include "llcommon.h"
#include "llthread.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();
}