Mobile API Reference  MicroStrategy 2019
Atomic.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : Atomic.h
3 // AUTHOR : vovechkin
4 // CREATION : 2004-10-22
5 // Copyright (C) MicroStrategy Incorporated 2004
6 // All Rights Reserved
7 //==============================================================================================
8 #ifndef MBase_Atomic_h
9 #define MBase_Atomic_h
10 
11 #include "Base.h"
13 
14 
15 namespace MBase
16 {
20  inline long AtomicExchange(long& irVariable, long iNewValue)
21  {
22  MSynch::AtomicLongData newData(irVariable);
23  return newData.Exchange(iNewValue);
24  }
25 }
26 
27 #endif // MBase_Atomic_h
Definition: AtomicLongData.h:18
long AtomicExchange(long &irVariable, long iNewValue)
Definition: Atomic.h:20
long Exchange(long inValue)
Definition: AtomicLongData.h:68
Definition: Allocator.h:47