mn_atomic_counter.hpp
Go to the documentation of this file.
This class implements a simple counter, whit atomic operations for use in a multithreaded environment...
Definition: mn_atomic_counter.hpp:34
atomic_counter()
Construct a new atomic_counter and initializes it to zero.
Definition: mn_atomic_counter.cpp:24
value_type value() const
Get the value of the counter.
Definition: mn_atomic_counter.hpp:61
_atomic< value_type > m_atomicCount
Definition: mn_atomic_counter.hpp:99
value_type operator--()
Decrements the counter.
Definition: mn_atomic_counter.hpp:72
bool operator!() const
If the counter zero?
Definition: mn_atomic_counter.hpp:88
value_type operator++()
Increments the counter.
Definition: mn_atomic_counter.hpp:67
atomic_counter & operator=(const atomic_counter &other)
Assigns the value of another atomic_counter.
Definition: mn_atomic_counter.cpp:34
Basic atomics types This file is part of the Mini Thread Library (https://github.com/RoseLeBlood/Mini...
Definition: mn_allocator_typetraits.hpp:25