Apache Log4cxx Version 1.1.0
Loading...
Searching...
No Matches
log4cxx::helpers::APRInitializer Class Reference

#include <aprinitializer.h>

Public Member Functions

 ~APRInitializer ()
 

Static Public Member Functions

static log4cxx_time_t initialize ()
 
static apr_pool_t * getRootPool ()
 
static apr_threadkey_tgetTlsKey ()
 
static void registerCleanup (FileWatchdog *watchdog)
 Register a FileWatchdog for deletion prior to termination.
 
static void unregisterCleanup (FileWatchdog *watchdog)
 
static void unregisterAll ()
 
template<class T >
static void setUnique (const std::shared_ptr< T > &pObject)
 Store a single instance type ObjectPtr for deletion prior to termination.
 
template<class T >
static std::shared_ptr< T > getOrAddUnique (std::function< ObjectPtr()> creator)
 Fetch or add a single instance type ObjectPtr for deletion prior to termination.
 

Static Public Attributes

static bool isDestructed
 

Constructor & Destructor Documentation

◆ ~APRInitializer()

log4cxx::helpers::APRInitializer::~APRInitializer ( )

Member Function Documentation

◆ getOrAddUnique()

template<class T >
static std::shared_ptr< T > log4cxx::helpers::APRInitializer::getOrAddUnique ( std::function< ObjectPtr()>  creator)
inlinestatic

Fetch or add a single instance type ObjectPtr for deletion prior to termination.

◆ getRootPool()

static apr_pool_t * log4cxx::helpers::APRInitializer::getRootPool ( )
static

◆ getTlsKey()

static apr_threadkey_t * log4cxx::helpers::APRInitializer::getTlsKey ( )
static

◆ initialize()

static log4cxx_time_t log4cxx::helpers::APRInitializer::initialize ( )
static

◆ registerCleanup()

static void log4cxx::helpers::APRInitializer::registerCleanup ( FileWatchdog watchdog)
static

Register a FileWatchdog for deletion prior to termination.

FileWatchdog must be allocated on heap and not deleted elsewhere.

◆ setUnique()

template<class T >
static void log4cxx::helpers::APRInitializer::setUnique ( const std::shared_ptr< T > &  pObject)
inlinestatic

Store a single instance type ObjectPtr for deletion prior to termination.

◆ unregisterAll()

static void log4cxx::helpers::APRInitializer::unregisterAll ( )
static

◆ unregisterCleanup()

static void log4cxx::helpers::APRInitializer::unregisterCleanup ( FileWatchdog watchdog)
static

Member Data Documentation

◆ isDestructed

bool log4cxx::helpers::APRInitializer::isDestructed
static

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