1 #ifndef BITES_MUTEXEDCOUNTER_HPP_INCLUDED
2 #define BITES_MUTEXEDCOUNTER_HPP_INCLUDED
43 std::lock_guard <std::mutex> locker (m_lock);
52 std::lock_guard <std::mutex> locker (m_lock);
60 static std::mutex m_lock;
68 template <
typename T> std::mutex MutexedCounter<T>::m_lock;
69 template <
typename T>
int MutexedCounter<T>::m_count (0);
73 #endif // BITES_MUTEXEDCOUNTER_HPP_INCLUDED
static int incrCount()
Definition: MutexedCounter.hpp:41
Definition: MutexedCounter.hpp:35
static int decrCount()
Definition: MutexedCounter.hpp:50