Go to the documentation of this file.
19 #ifndef GRPC_IMPL_CODEGEN_ATM_WINDOWS_H
20 #define GRPC_IMPL_CODEGEN_ATM_WINDOWS_H
26 #define GPR_ATM_MAX INTPTR_MAX
27 #define GPR_ATM_MIN INTPTR_MIN
28 #define GPR_ATM_INC_CAS_THEN(blah) blah
29 #define GPR_ATM_INC_ADD_THEN(blah) blah
31 #define gpr_atm_full_barrier MemoryBarrier
58 return o == (
gpr_atm)InterlockedCompareExchangeAcquire64(
59 (
volatile LONGLONG*)p, (LONGLONG)n, (LONGLONG)o);
61 return o == (
gpr_atm)InterlockedCompareExchangeAcquire((
volatile LONG*)p,
68 return o == (
gpr_atm)InterlockedCompareExchangeAcquire64(
69 (
volatile LONGLONG*)p, (LONGLONG)n, (LONGLONG)o);
71 return o == (
gpr_atm)InterlockedCompareExchangeAcquire((
volatile LONG*)p,
78 return o == (
gpr_atm)InterlockedCompareExchangeRelease64(
79 (
volatile LONGLONG*)p, (LONGLONG)n, (LONGLONG)o);
81 return o == (
gpr_atm)InterlockedCompareExchangeRelease((
volatile LONG*)p,
88 return o == (
gpr_atm)InterlockedCompareExchange64((
volatile LONGLONG*)p,
89 (LONGLONG)n, (LONGLONG)o);
91 return o == (
gpr_atm)InterlockedCompareExchange((
volatile LONG*)p, (LONG)n,
112 }
while (old != (
gpr_atm)InterlockedCompareExchange64((
volatile LONGLONG*)p,
113 (LONGLONG)old + delta,
118 }
while (old != (
gpr_atm)InterlockedCompareExchange(
119 (
volatile LONG*)p, (LONG)old + delta, (LONG)old));
125 return (
gpr_atm)InterlockedExchangePointer((PVOID*)p, (PVOID)n);
#define gpr_atm_no_barrier_load(p)
Definition: atm_gcc_atomic.h:51
#define gpr_atm_full_fetch_add(p, delta)
Definition: atm_gcc_atomic.h:60
#define gpr_atm_no_barrier_store(p, value)
Definition: atm_gcc_atomic.h:54
#define gpr_atm_acq_cas(p, o, n)
Definition: atm_gcc_sync.h:73
intptr_t gpr_atm
Win32 variant of atm_platform.h.
Definition: atm_windows.h:25
#define gpr_atm_full_xchg(p, n)
Definition: atm_gcc_atomic.h:84
#define gpr_atm_rel_cas(p, o, n)
Definition: atm_gcc_sync.h:74
#define gpr_atm_full_barrier
Definition: atm_windows.h:31
#define gpr_atm_acq_load(p)
Definition: atm_gcc_atomic.h:50
#define gpr_atm_rel_store(p, value)
Definition: atm_gcc_atomic.h:52
#define gpr_atm_no_barrier_fetch_add(p, delta)
Definition: atm_gcc_atomic.h:57
#define gpr_atm_no_barrier_cas(p, o, n)
Definition: atm_gcc_sync.h:72
intptr_t gpr_atm
Definition: atm_gcc_atomic.h:30
#define gpr_atm_full_cas(p, o, n)
Definition: atm_gcc_sync.h:75