Base class for thread-safe counting, comes with an exception-safe incrementing/decrementing counter class.
More...
#include <elementary/memcore/Counter.hpp>
|
|
| Counter () throw () |
| | Initialize counter to zero.
|
| counter_t | operator() () const throw () |
| | Return the strong reference count, i.e.
|
|
void | operator++ () throw () |
| | increment the count
|
|
bool | operator-- () throw () |
| | decrement the count, returns true if it is zero after decrement
|
|
|
volatile counter_t | value |
| | The count value.
|
Base class for thread-safe counting, comes with an exception-safe incrementing/decrementing counter class.
◆ operator()()
| counter_t MemCore::Counter::operator() |
( |
| ) |
const |
| throw | ( | ) | | | |
|
inline |
Return the strong reference count, i.e.
how many object keep this object alive.
References value.