aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/impl/codegen/atm_gcc_atomic.h
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-09-12 11:59:45 -0700
committerGravatar GitHub <noreply@github.com>2016-09-12 11:59:45 -0700
commit57726ca5a9c08ba17c882a798b93e03d333edd9f (patch)
treebdf922ed4a33a2290bab32f236b6584cbfc0e50d /include/grpc/impl/codegen/atm_gcc_atomic.h
parent6e51f992c6bfdfba61d984ab173305da455bd2e7 (diff)
Revert "Revert "Grand unified closures""
Diffstat (limited to 'include/grpc/impl/codegen/atm_gcc_atomic.h')
-rw-r--r--include/grpc/impl/codegen/atm_gcc_atomic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/grpc/impl/codegen/atm_gcc_atomic.h b/include/grpc/impl/codegen/atm_gcc_atomic.h
index 8caf7edbde..7d4ae98cf7 100644
--- a/include/grpc/impl/codegen/atm_gcc_atomic.h
+++ b/include/grpc/impl/codegen/atm_gcc_atomic.h
@@ -69,4 +69,6 @@ static __inline int gpr_atm_rel_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
__ATOMIC_RELAXED);
}
+#define gpr_atm_full_xchg(p, n) __atomic_exchange_n((p), (n), __ATOMIC_ACQ_REL)
+
#endif /* GRPC_IMPL_CODEGEN_ATM_GCC_ATOMIC_H */