This commit is contained in:
Behdad Esfahbod 2015-04-08 16:26:16 -07:00
parent b931e0b0ce
commit 2958f2c147
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ static inline void _HBMemoryBarrier (void) {
}
typedef LONG hb_atomic_int_impl_t;
#define HB_ATOMIC_INT_IMPL_INIT(V) (V)
#define hb_atomic_int_impl_add(AI, V) InterlockedExchangeAdd (&(AI), (V))
#define hb_atomic_ptr_impl_get(P) (_HBMemoryBarrier (), (void *) *(P))