XRootD
XrdSysAtomics.hh File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AtomicAdd(x, y)   x += y
 
#define AtomicBeg(Mtx)   Mtx.Lock()
 
#define AtomicCAS(x, y, z)   if (x == y) x = z
 
#define AtomicDec(x)   x--
 
#define AtomicEnd(Mtx)   Mtx.UnLock()
 
#define AtomicFAdd(w, x, y)   {w = x; x += y;}
 
#define AtomicFAZ(x)   x; x = 0
 
#define AtomicFSub(w, x, y)   {w = x; x -= y;}
 
#define AtomicFZAP(w, x)   {w = x; x = 0;}
 
#define AtomicGet(x)   x
 
#define AtomicInc(x)   x++
 
#define AtomicRet(mtx, x)
 
#define AtomicSub(x, y)   x -= y
 
#define AtomicZAP(x)   x = 0
 
#define CPP_ATOMIC_LOAD(x, order)   x
 
#define CPP_ATOMIC_STORE(x, val, order)   x = val
 
#define CPP_ATOMIC_TYPE(kind)   kind
 

Macro Definition Documentation

◆ AtomicAdd

#define AtomicAdd (   x,
 
)    x += y

Definition at line 65 of file XrdSysAtomics.hh.

◆ AtomicBeg

#define AtomicBeg (   Mtx)    Mtx.Lock()

Definition at line 63 of file XrdSysAtomics.hh.

◆ AtomicCAS

#define AtomicCAS (   x,
  y,
 
)    if (x == y) x = z

Definition at line 67 of file XrdSysAtomics.hh.

◆ AtomicDec

#define AtomicDec (   x)    x--

Definition at line 68 of file XrdSysAtomics.hh.

◆ AtomicEnd

#define AtomicEnd (   Mtx)    Mtx.UnLock()

Definition at line 64 of file XrdSysAtomics.hh.

◆ AtomicFAdd

#define AtomicFAdd (   w,
  x,
 
)    {w = x; x += y;}

Definition at line 66 of file XrdSysAtomics.hh.

◆ AtomicFAZ

#define AtomicFAZ (   x)    x; x = 0

Definition at line 69 of file XrdSysAtomics.hh.

◆ AtomicFSub

#define AtomicFSub (   w,
  x,
 
)    {w = x; x -= y;}

Definition at line 74 of file XrdSysAtomics.hh.

◆ AtomicFZAP

#define AtomicFZAP (   w,
 
)    {w = x; x = 0;}

Definition at line 70 of file XrdSysAtomics.hh.

◆ AtomicGet

#define AtomicGet (   x)    x

Definition at line 71 of file XrdSysAtomics.hh.

◆ AtomicInc

#define AtomicInc (   x)    x++

Definition at line 72 of file XrdSysAtomics.hh.

◆ AtomicRet

#define AtomicRet (   mtx,
 
)
Value:
{mtx.Lock(); int _ ## x = x; \
mtx.UnLock(); return _ ## x;}

Definition at line 76 of file XrdSysAtomics.hh.

◆ AtomicSub

#define AtomicSub (   x,
 
)    x -= y

Definition at line 73 of file XrdSysAtomics.hh.

◆ AtomicZAP

#define AtomicZAP (   x)    x = 0

Definition at line 75 of file XrdSysAtomics.hh.

◆ CPP_ATOMIC_LOAD

#define CPP_ATOMIC_LOAD (   x,
  order 
)    x

Definition at line 95 of file XrdSysAtomics.hh.

◆ CPP_ATOMIC_STORE

#define CPP_ATOMIC_STORE (   x,
  val,
  order 
)    x = val

Definition at line 96 of file XrdSysAtomics.hh.

◆ CPP_ATOMIC_TYPE

#define CPP_ATOMIC_TYPE (   kind)    kind

Definition at line 97 of file XrdSysAtomics.hh.