include/corelib/ncbi_safe_static.hpp File Reference


Detailed Description

Static variables safety - create on demand, destroy on application termination.

Definition in file ncbi_safe_static.hpp.

#include <corelib/ncbistl.hpp>
#include <corelib/ncbiobj.hpp>
#include <corelib/ncbimtx.hpp>
#include <corelib/ncbi_limits.h>
#include <set>

Include dependency graph for ncbi_safe_static.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CSafeStaticLifeSpan
 CSafeStaticLifeSpan::. More...
class  CSafeStaticPtr_Base
 CSafeStaticPtr_Base::. More...
class  CSafeStatic_Less
 Comparison for safe static ptrs. More...
class  CSafeStaticPtr< T >
 CSafeStaticPtr<>::. More...
class  CSafeStaticRef< T >
 CSafeStaticRef<>::. More...
class  CSafeStaticGuard
 CSafeStaticGuard::. More...

Variables

static CSafeStaticGuard s_CleanupGuard
 This static variable must be present in all modules using on-demand static variables.


Variable Documentation

CSafeStaticGuard s_CleanupGuard [static]
 

This static variable must be present in all modules using on-demand static variables.

The guard must be created first regardless of the modules initialization order.

Definition at line 394 of file ncbi_safe_static.hpp.


Generated on Wed Dec 9 05:51:24 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Wed Dec 09 08:18:18 2009 by modify_doxy.py rev. 173732