#include <MutexedCounter.hpp>
Static Protected Member Functions | |
static int | incrCount () |
static int | decrCount () |
Thread-safe class-wide counter. You can use it, for example, as base class for your bites::Thread implementation to track class-wide counts:
Class-specific counting is implemented using "Curiously recurring template pattern" (CRTP): http://en.wikipedia.org/wiki/Curiously_recurring_template_pattern
|
inlinestaticprotected |
Thread-safely increment the count.
|
inlinestaticprotected |
Thread-safely decrement the count.