Class sh::tools::AtomicCounter

class sh::tools::AtomicCounter

Internal tool for reference counting.

Public Functions

AtomicCounter()
int value()
std::shared_ptr<AtomicCounter::Increment> increment()
int doIncValue()
int doDecValue()

Private Members

int _value = 0
QMutex _mutex
class Increment

Public Functions

Increment(AtomicCounter *ac)
~Increment()

Private Members

AtomicCounter *_ac

Friends

friend class AtomicCounter