Go to the source code of this file.
|
#define | GPR_ATM_MAX INTPTR_MAX |
|
#define | GPR_ATM_MIN INTPTR_MIN |
|
#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) __atomic_fetch_add((p), (intptr_t)(delta), __ATOMIC_RELAXED) |
|
#define | gpr_atm_full_fetch_add(p, delta) __atomic_fetch_add((p), (intptr_t)(delta), __ATOMIC_ACQ_REL) |
|
#define | gpr_atm_full_xchg(p, n) __atomic_exchange_n((p), (n), __ATOMIC_ACQ_REL) |
|
◆ 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 |
|
) |
| __atomic_fetch_add((p), (intptr_t)(delta), __ATOMIC_ACQ_REL) |
◆ gpr_atm_full_xchg
#define gpr_atm_full_xchg |
( |
|
p, |
|
|
|
n |
|
) |
| __atomic_exchange_n((p), (n), __ATOMIC_ACQ_REL) |
◆ 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 |
|
) |
| __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)) |
◆ gpr_atm