LTL  2.0.x
Public Member Functions | Protected Member Functions | List of all members
ltl::ltl::SynchronizedCounter Class Reference

Public Member Functions

 SynchronizedCounter ()
 
 SynchronizedCounter (const int n)
 
virtual ~SynchronizedCounter ()
 
int IncAndFetch ()
 
int DecAndFetch ()
 
int Counter () const
 

Protected Member Functions

void initMutex ()
 
void destroyMutex ()
 

Constructor & Destructor Documentation

◆ SynchronizedCounter() [1/2]

ltl::ltl::SynchronizedCounter::SynchronizedCounter ( )
inline

◆ SynchronizedCounter() [2/2]

ltl::ltl::SynchronizedCounter::SynchronizedCounter ( const int  n)
inline

◆ ~SynchronizedCounter()

virtual ltl::ltl::SynchronizedCounter::~SynchronizedCounter ( )
inlinevirtual

Member Function Documentation

◆ IncAndFetch()

int ltl::ltl::SynchronizedCounter::IncAndFetch ( )
inline

◆ DecAndFetch()

int ltl::ltl::SynchronizedCounter::DecAndFetch ( )
inline

◆ Counter()

int ltl::ltl::SynchronizedCounter::Counter ( ) const
inline

◆ initMutex()

void ltl::ltl::SynchronizedCounter::initMutex ( )
inlineprotected

◆ destroyMutex()

void ltl::ltl::SynchronizedCounter::destroyMutex ( )
inlineprotected