|
|
@ -31,8 +31,8 @@ |
|
|
|
* |
|
|
|
* |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GRPC_SUPPORT_ATM_GCC_SYNC_H__ |
|
|
|
#ifndef GRPC_SUPPORT_ATM_GCC_SYNC_H |
|
|
|
#define __GRPC_SUPPORT_ATM_GCC_SYNC_H__ |
|
|
|
#define GRPC_SUPPORT_ATM_GCC_SYNC_H |
|
|
|
|
|
|
|
|
|
|
|
/* variant of atm_platform.h for gcc and gcc-like compiers with __sync_*
|
|
|
|
/* variant of atm_platform.h for gcc and gcc-like compiers with __sync_*
|
|
|
|
interface */ |
|
|
|
interface */ |
|
|
@ -70,4 +70,4 @@ static __inline void gpr_atm_rel_store(gpr_atm *p, gpr_atm value) { |
|
|
|
#define gpr_atm_acq_cas(p, o, n) (__sync_bool_compare_and_swap((p), (o), (n))) |
|
|
|
#define gpr_atm_acq_cas(p, o, n) (__sync_bool_compare_and_swap((p), (o), (n))) |
|
|
|
#define gpr_atm_rel_cas(p, o, n) gpr_atm_acq_cas((p), (o), (n)) |
|
|
|
#define gpr_atm_rel_cas(p, o, n) gpr_atm_acq_cas((p), (o), (n)) |
|
|
|
|
|
|
|
|
|
|
|
#endif /* __GRPC_SUPPORT_ATM_GCC_SYNC_H__ */ |
|
|
|
#endif /* GRPC_SUPPORT_ATM_GCC_SYNC_H */ |
|
|
|