xrootd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros
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 NEED_ATOMIC_MUTEX   1
 Use native atomics at the c11 or higher level (-std=c++0x -lstdc++) More...
 
#define Atomic_IMP   "missing"
 
#define Atomic(type)   type
 
#define Atomic_BEG(x)   pthread_mutex_lock(x)
 
#define Atomic_DEC(x)   x--
 
#define Atomic_GET(x)   x
 
#define Atomic_INC(x)   x++
 
#define Atomic_SET(x, y)   x = y
 
#define Atomic_ZAP(x)   x = 0
 
#define Atomic_END(x)   pthread_mutex_unlock(x)
 

Macro Definition Documentation

#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,
 
)    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++)