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

ltl::ltl::SynchronizedCounter::SynchronizedCounter ( )
inline
ltl::ltl::SynchronizedCounter::SynchronizedCounter ( const int  n)
inline
virtual ltl::ltl::SynchronizedCounter::~SynchronizedCounter ( )
inlinevirtual

Member Function Documentation

int ltl::ltl::SynchronizedCounter::IncAndFetch ( )
inline
int ltl::ltl::SynchronizedCounter::DecAndFetch ( )
inline
int ltl::ltl::SynchronizedCounter::Counter ( ) const
inline
void ltl::ltl::SynchronizedCounter::initMutex ( )
inlineprotected
void ltl::ltl::SynchronizedCounter::destroyMutex ( )
inlineprotected