reSIProcate/rutil  9694
Public Member Functions | Static Protected Attributes
resip::LogStaticInitializer Class Reference

Class to initialize Log class static variables. More...

#include <Log.hxx>

List of all members.

Public Member Functions

 LogStaticInitializer ()
 ~LogStaticInitializer ()

Static Protected Attributes

static unsigned int mInstanceCounter = 0

Detailed Description

Class to initialize Log class static variables.

Definition at line 419 of file Log.hxx.


Constructor & Destructor Documentation

LogStaticInitializer::LogStaticInitializer ( )
LogStaticInitializer::~LogStaticInitializer ( )

Definition at line 94 of file Log.cxx.

References resip::Log::mLevelKey, resip::Log::mLocalLoggerKey, and resip::ThreadIf::tlsKeyDelete().

{
   if (--mInstanceCounter == 0)
   {
#ifdef LOG_ENABLE_THREAD_SETTING
      ThreadIf::tlsKeyDelete(*Log::mLevelKey);
      delete Log::mLevelKey;
#endif

      ThreadIf::tlsKeyDelete(*Log::mLocalLoggerKey);
      delete Log::mLocalLoggerKey;
   }
}

Here is the call graph for this function:


Member Data Documentation

unsigned int LogStaticInitializer::mInstanceCounter = 0 [static, protected]

Definition at line 424 of file Log.hxx.


The documentation for this class was generated from the following files: