xrootd
Loading...
Searching...
No Matches
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++)
 
#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

◆ Atomic

#define Atomic (   type)    type

◆ Atomic_BEG

#define Atomic_BEG (   x)    pthread_mutex_lock(x)

◆ Atomic_DEC

#define Atomic_DEC (   x)    x--

◆ Atomic_END

#define Atomic_END (   x)    pthread_mutex_unlock(x)

◆ Atomic_GET

#define Atomic_GET (   x)    x

◆ Atomic_IMP

#define Atomic_IMP   "missing"

◆ Atomic_INC

#define Atomic_INC (   x)    x++

◆ Atomic_SET

#define Atomic_SET (   x,
 
)    x = y

◆ Atomic_ZAP

#define Atomic_ZAP (   x)    x = 0

◆ NEED_ATOMIC_MUTEX

#define NEED_ATOMIC_MUTEX   1

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