ldas-tools-diskcacheAPI  2.7.2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
diskCache::ThreadCounter Class Reference

#include <counter.hh>

Public Member Functions

 ThreadCounter (INT_2S &counter, LDASTools::AL::ReadWriteLock::baton_type lock)
 Constructor. More...
 
 ~ThreadCounter ()
 Destructor. More...
 

Private Member Functions

 ThreadCounter ()
 
 ThreadCounter (const ThreadCounter &)
 
const ThreadCounteroperator= (const ThreadCounter &)
 

Private Attributes

INT_2S & mCounter
 
LDASTools::AL::ReadWriteLock::baton_type mCounterLock
 

Constructor & Destructor Documentation

◆ ThreadCounter() [1/3]

diskCache::ThreadCounter::ThreadCounter ( INT_2S &  counter,
LDASTools::AL::ReadWriteLock::baton_type  lock 
)

Constructor.

Parameters
[in,out]counterVariable holding initial value for the thread count.
[in]lockThread syncronization.

Increments counter by 1.

◆ ~ThreadCounter()

diskCache::ThreadCounter::~ThreadCounter ( )

Destructor.

Decrements counter by 1.

◆ ThreadCounter() [2/3]

diskCache::ThreadCounter::ThreadCounter ( )
private

◆ ThreadCounter() [3/3]

diskCache::ThreadCounter::ThreadCounter ( const ThreadCounter )
private

Member Function Documentation

◆ operator=()

const ThreadCounter& diskCache::ThreadCounter::operator= ( const ThreadCounter )
private

Member Data Documentation

◆ mCounter

INT_2S& diskCache::ThreadCounter::mCounter
private

◆ mCounterLock

LDASTools::AL::ReadWriteLock::baton_type diskCache::ThreadCounter::mCounterLock
private

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