xrootd
Macros
XrdSysAtomics.hh File Reference

Go to the source code of this file.

Macros

#define AtomicBeg(Mtx)   Mtx.Lock()
 
#define AtomicEnd(Mtx)   Mtx.UnLock()
 
#define AtomicAdd(x, y)   x += y
 
#define AtomicCAS(x, y, z)   if (x == y) x = z
 
#define AtomicDec(x)   x--
 
#define AtomicFAZ(x)   x; x = 0
 
#define AtomicGet(x)   x
 
#define AtomicInc(x)   x++
 
#define AtomicSub(x, y)   x -= y
 
#define AtomicZAP(x)   x = 0
 

Macro Definition Documentation

#define AtomicAdd (   x,
 
)    x += y
#define AtomicBeg (   Mtx)    Mtx.Lock()
#define AtomicCAS (   x,
  y,
 
)    if (x == y) x = z
#define AtomicDec (   x)    x--
#define AtomicEnd (   Mtx)    Mtx.UnLock()
#define AtomicFAZ (   x)    x; x = 0
#define AtomicGet (   x)    x
#define AtomicInc (   x)    x++
#define AtomicSub (   x,
 
)    x -= y
#define AtomicZAP (   x)    x = 0