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
"
12
#include "
Synch/Synch/PrivateSource/AtomicLongData.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
AtomicLongData.h
MSynch::AtomicLongData
Definition:
AtomicLongData.h:18
MBase::AtomicExchange
long AtomicExchange(long &irVariable, long iNewValue)
Definition:
Atomic.h:20
MSynch::AtomicLongData::Exchange
long Exchange(long inValue)
Definition:
AtomicLongData.h:68
Base.h
MBase
Definition:
Allocator.h:47
Users
vvitarello
Desktop
MobileSDKSourceFiles
Base
Base
Atomic.h
Generated by
1.8.14