GRPC C++  1.30.0
Macros | Typedefs
atm_gcc_atomic.h File Reference
#include <grpc/impl/codegen/port_platform.h>

Go to the source code of this file.

Macros

#define GPR_ATM_MAX   INTPTR_MAX
 
#define GPR_ATM_MIN   INTPTR_MIN
 
#define GPR_ATM_INC_CAS_THEN(blah)   blah
 
#define GPR_ATM_INC_ADD_THEN(blah)   blah
 
#define gpr_atm_full_barrier()   (__atomic_thread_fence(__ATOMIC_SEQ_CST))
 
#define gpr_atm_acq_load(p)   (__atomic_load_n((p), __ATOMIC_ACQUIRE))
 
#define gpr_atm_no_barrier_load(p)   (__atomic_load_n((p), __ATOMIC_RELAXED))
 
#define gpr_atm_rel_store(p, value)   (__atomic_store_n((p), (intptr_t)(value), __ATOMIC_RELEASE))
 
#define gpr_atm_no_barrier_store(p, value)   (__atomic_store_n((p), (intptr_t)(value), __ATOMIC_RELAXED))
 
#define gpr_atm_no_barrier_fetch_add(p, delta)
 
#define gpr_atm_full_fetch_add(p, delta)
 
#define gpr_atm_full_xchg(p, n)   GPR_ATM_INC_CAS_THEN(__atomic_exchange_n((p), (n), __ATOMIC_ACQ_REL))
 

Typedefs

typedef intptr_t gpr_atm
 

Macro Definition Documentation

◆ gpr_atm_acq_load

#define gpr_atm_acq_load (   p)    (__atomic_load_n((p), __ATOMIC_ACQUIRE))

◆ gpr_atm_full_barrier

#define gpr_atm_full_barrier ( )    (__atomic_thread_fence(__ATOMIC_SEQ_CST))

◆ gpr_atm_full_fetch_add

#define gpr_atm_full_fetch_add (   p,
  delta 
)
Value:
__atomic_fetch_add((p), (intptr_t)(delta), __ATOMIC_ACQ_REL))

◆ gpr_atm_full_xchg

#define gpr_atm_full_xchg (   p,
 
)    GPR_ATM_INC_CAS_THEN(__atomic_exchange_n((p), (n), __ATOMIC_ACQ_REL))

◆ GPR_ATM_INC_ADD_THEN

#define GPR_ATM_INC_ADD_THEN (   blah)    blah

◆ GPR_ATM_INC_CAS_THEN

#define GPR_ATM_INC_CAS_THEN (   blah)    blah

◆ GPR_ATM_MAX

#define GPR_ATM_MAX   INTPTR_MAX

◆ GPR_ATM_MIN

#define GPR_ATM_MIN   INTPTR_MIN

◆ gpr_atm_no_barrier_fetch_add

#define gpr_atm_no_barrier_fetch_add (   p,
  delta 
)
Value:
__atomic_fetch_add((p), (intptr_t)(delta), __ATOMIC_RELAXED))

◆ gpr_atm_no_barrier_load

#define gpr_atm_no_barrier_load (   p)    (__atomic_load_n((p), __ATOMIC_RELAXED))

◆ gpr_atm_no_barrier_store

#define gpr_atm_no_barrier_store (   p,
  value 
)    (__atomic_store_n((p), (intptr_t)(value), __ATOMIC_RELAXED))

◆ gpr_atm_rel_store

#define gpr_atm_rel_store (   p,
  value 
)    (__atomic_store_n((p), (intptr_t)(value), __ATOMIC_RELEASE))

Typedef Documentation

◆ gpr_atm

typedef intptr_t gpr_atm
GPR_ATM_INC_ADD_THEN
#define GPR_ATM_INC_ADD_THEN(blah)
Definition: atm_gcc_atomic.h:45