diff options
Diffstat (limited to 'src/core/lib/support')
-rw-r--r-- | src/core/lib/support/spinlock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lib/support/spinlock.h b/src/core/lib/support/spinlock.h index aeb5622726..06c45de84b 100644 --- a/src/core/lib/support/spinlock.h +++ b/src/core/lib/support/spinlock.h @@ -41,6 +41,8 @@ typedef struct { gpr_atm atm; } gpr_spinlock; #define GPR_SPINLOCK_INITIALIZER ((gpr_spinlock){0}) +#define GPR_SPINLOCK_STATIC_INITIALIZER \ + { 0 } #define gpr_spinlock_trylock(lock) (gpr_atm_acq_cas(&(lock)->atm, 0, 1)) #define gpr_spinlock_unlock(lock) (gpr_atm_rel_store(&(lock)->atm, 0)) #define gpr_spinlock_lock(lock) \ |