CAtomicCounter_WithAutoInit Class Reference
[Atomic Counters]

Search Toolkit Book for CAtomicCounter_WithAutoInit

#include <ncbicntr.hpp>

Inheritance diagram for CAtomicCounter_WithAutoInit:

Inheritance graph
[legend]
Collaboration diagram for CAtomicCounter_WithAutoInit:

Collaboration graph
[legend]
List of all members.

Detailed Description

CAtomicCounter_WithAutoInit --.

Define an atomic counter with guaranteed initialization.

CAtomicCounter does not initialize its value if it's not a static object. CAtomicCounter_WithAutoInit automatically calls Set() in its constructor to set the initial value.

Definition at line 111 of file ncbicntr.hpp.

Public Member Functions

 CAtomicCounter_WithAutoInit (TValue initial_value=0)


Constructor & Destructor Documentation

CAtomicCounter_WithAutoInit::CAtomicCounter_WithAutoInit TValue  initial_value = 0  )  [inline]
 

Definition at line 114 of file ncbicntr.hpp.

References CAtomicCounter::Set().


The documentation for this class was generated from the following file:
Generated on Mon Dec 7 10:05:58 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:22:32 2009 by modify_doxy.py rev. 173732