Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Attributes | Related Functions
XsAtomicInt Class Reference

Detailed Description

Wrapper class for easy use of XsAtomicIntValue values.

Definition at line 69 of file xsatomicint.h.

#include <xSens_MT4/xstypes/include/xsens/xsatomicint.h>

Public Attributes

volatile XsAtomicIntValue m_value
 The actual value. More...
 

Related Functions

(Note that these are not member functions.)

#define XsAtomicInt_preIncrement(a)   ((XsAtomicIntValue)atomicIncrement((a)->m_value))
 Increase the value by one unit (prefix notation). More...
 
#define XsAtomicInt_preDecrement(a)   ((XsAtomicIntValue)atomicDecrement((a)->m_value))
 Decrease the value by one unit (prefix notation). More...
 
#define XsAtomicInt_postIncrement(a)   ((XsAtomicIntValue)atomicIncrement((a)->m_value) - 1)
 Increase the value by one unit (postfix notation). More...
 
#define XsAtomicInt_postDecrement(a)   ((XsAtomicIntValue)atomicDecrement((a)->m_value) + 1)
 Decrease the value by one unit (postfix notation). More...
 

Friends And Related Function Documentation

◆ XsAtomicInt_postDecrement

#define XsAtomicInt_postDecrement (   a)    ((XsAtomicIntValue)atomicDecrement((a)->m_value) + 1)
related

Decrease the value by one unit (postfix notation).

Definition at line 63 of file xsatomicint.h.

◆ XsAtomicInt_postIncrement

#define XsAtomicInt_postIncrement (   a)    ((XsAtomicIntValue)atomicIncrement((a)->m_value) - 1)
related

Increase the value by one unit (postfix notation).

Definition at line 58 of file xsatomicint.h.

◆ XsAtomicInt_preDecrement

#define XsAtomicInt_preDecrement (   a)    ((XsAtomicIntValue)atomicDecrement((a)->m_value))
related

Decrease the value by one unit (prefix notation).

Definition at line 53 of file xsatomicint.h.

◆ XsAtomicInt_preIncrement

#define XsAtomicInt_preIncrement (   a)    ((XsAtomicIntValue)atomicIncrement((a)->m_value))
related

Increase the value by one unit (prefix notation).

Definition at line 48 of file xsatomicint.h.

Member Data Documentation

◆ m_value

volatile XsAtomicIntValue XsAtomicInt::m_value

The actual value.

Definition at line 72 of file xsatomicint.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019