XRootD
XrdSsiAtomics.hh File Reference
#include <cstring>
#include <pthread.h>
+ Include dependency graph for XrdSsiAtomics.hh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  XrdSsiMutex
 
class  XrdSsiMutexMon
 

Macros

#define Atomic(type)   type
 
#define Atomic_BEG(x)   pthread_mutex_lock(x)
 
#define Atomic_DEC(x)   x--
 
#define Atomic_END(x)   pthread_mutex_unlock(x)
 
#define Atomic_GET(x)   x
 
#define Atomic_IMP   "missing"
 
#define Atomic_INC(x)   x++
 
#define Atomic_SET(x, y)   x = y
 
#define Atomic_ZAP(x)   x = 0
 
#define NEED_ATOMIC_MUTEX   1
 Use native atomics at the c11 or higher level (-std=c++0x -lstdc++) More...
 

Macro Definition Documentation

◆ Atomic

#define Atomic (   type)    type

Definition at line 93 of file XrdSsiAtomics.hh.

◆ Atomic_BEG

#define Atomic_BEG (   x)    pthread_mutex_lock(x)

Definition at line 94 of file XrdSsiAtomics.hh.

◆ Atomic_DEC

#define Atomic_DEC (   x)    x--

Definition at line 95 of file XrdSsiAtomics.hh.

◆ Atomic_END

#define Atomic_END (   x)    pthread_mutex_unlock(x)

Definition at line 100 of file XrdSsiAtomics.hh.

◆ Atomic_GET

#define Atomic_GET (   x)    x

Definition at line 96 of file XrdSsiAtomics.hh.

◆ Atomic_IMP

#define Atomic_IMP   "missing"

Definition at line 92 of file XrdSsiAtomics.hh.

◆ Atomic_INC

#define Atomic_INC (   x)    x++

Definition at line 97 of file XrdSsiAtomics.hh.

◆ Atomic_SET

#define Atomic_SET (   x,
 
)    x = y

Definition at line 98 of file XrdSsiAtomics.hh.

◆ Atomic_ZAP

#define Atomic_ZAP (   x)    x = 0

Definition at line 99 of file XrdSsiAtomics.hh.

◆ NEED_ATOMIC_MUTEX

#define NEED_ATOMIC_MUTEX   1

Use native atomics at the c11 or higher level (-std=c++0x -lstdc++)

Definition at line 91 of file XrdSsiAtomics.hh.