NCBI C++ ToolKit
Public Types | Public Member Functions | Private Attributes | List of all members
CMutableAtomicCounter Class Reference

Search Toolkit Book for CMutableAtomicCounter

CMutableAtomicCounter –. More...

#include <corelib/ncbicntr.hpp>

+ Collaboration diagram for CMutableAtomicCounter:

Public Types

typedef CAtomicCounter::TValue TValue
 Alias TValue simplifies syntax. More...

Public Member Functions

TValue Get (void) const THROWS_NONE
 Get atomic counter value. More...
void Set (TValue new_value) const THROWS_NONE
 Set atomic counter value. More...
TValue Add (int delta) const THROWS_NONE
 Atomically add value (=delta), and return new counter value. More...

Private Attributes

CAtomicCounter m_Counter
 Mutable atomic counter value. More...

Detailed Description

CMutableAtomicCounter –.

Define a mutable atomic counter.

Provide mutable counter operations for an atomic counter represented internally by CAtomicCounter.

Definition at line 138 of file ncbicntr.hpp.

The documentation for this class was generated from the following file:
Modified on Tue Jul 23 17:49:45 2024 by rev. 669887