ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
AtomicCounter Class Reference

Fake QAtomicInt. More...

Public Member Functions

 AtomicCounter ()
 
int load ()
 
void store (int value)
 
int fetchAndAddRelaxed (int add)
 

Public Attributes

int m_value
 

Detailed Description

Fake QAtomicInt.

Warning
Not thread safe!

Constructor & Destructor Documentation

◆ AtomicCounter()

AtomicCounter::AtomicCounter ( )
inline

Member Function Documentation

◆ fetchAndAddRelaxed()

int AtomicCounter::fetchAndAddRelaxed ( int  add)
inline

◆ load()

int AtomicCounter::load ( )
inline

◆ store()

void AtomicCounter::store ( int  value)
inline

Member Data Documentation

◆ m_value

int AtomicCounter::m_value

Referenced by fetchAndAddRelaxed(), load(), and store().


The documentation for this class was generated from the following file: