MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / atomic_decr32

Function atomic_decr32

source/extern/rpmalloc.c:274–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272static FORCEINLINE void atomic_store32(atomic32_t* dst, int32_t val) { *dst = val; }
273static FORCEINLINE int32_t atomic_incr32(atomic32_t* val) { return (int32_t)InterlockedIncrement(val); }
274static FORCEINLINE int32_t atomic_decr32(atomic32_t* val) { return (int32_t)InterlockedDecrement(val); }
275static FORCEINLINE int32_t atomic_add32(atomic32_t* val, int32_t add) { return (int32_t)InterlockedExchangeAdd(val, add) + add; }
276static FORCEINLINE int atomic_cas32_acquire(atomic32_t* dst, int32_t val, int32_t ref) { return (InterlockedCompareExchange(dst, val, ref) == ref) ? 1 : 0; }
277static FORCEINLINE void atomic_store32_release(atomic32_t* dst, int32_t val) { *dst = val; }

Callers 4

_rpmalloc_heap_unmapFunction · 0.85
_rpmalloc_heap_releaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected