diff options
author | James Cook <james@lindenlab.com> | 2007-01-02 08:33:20 +0000 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2007-01-02 08:33:20 +0000 |
commit | 420b91db29485df39fd6e724e782c449158811cb (patch) | |
tree | b471a94563af914d3ed3edd3e856d21cb1b69945 /indra/llcommon/llcommon.cpp |
Print done when done.
Diffstat (limited to 'indra/llcommon/llcommon.cpp')
-rw-r--r-- | indra/llcommon/llcommon.cpp | 43 |
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(); +} |