Main MRPT website > C++ reference for MRPT 1.5.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 58 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 53 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 50 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 47 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 44 of file xsatomicint.h.

Member Data Documentation

◆ m_value

volatile XsAtomicIntValue XsAtomicInt::m_value

The actual value.

Definition at line 59 of file xsatomicint.h.




Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020