Class GuardedCounter¶
Defined in File utilities.h
Class Documentation¶
-
class GuardedCounter¶
automatically increments on construction, decrements on destruction
construct with a std::atomic<int> which is passed by reference
Public Functions
-
inline GuardedCounter(std::atomic<int> &c)¶
-
inline ~GuardedCounter()¶
-
GuardedCounter(const GuardedCounter&) = delete¶
-
GuardedCounter &operator=(const GuardedCounter&) = delete¶
Public Members
-
std::atomic<int> &counter¶
-
inline GuardedCounter(std::atomic<int> &c)¶