Commit 86029cde authored by Steven Noonan's avatar Steven Noonan Committed by David Reid

ma_slot_allocator_free: use atomic load on allocator count

Signed-off-by: default avatarSteven Noonan <steven@uplinklabs.net>
parent 0c22f75e
......@@ -38986,7 +38986,7 @@ MA_API ma_result ma_slot_allocator_free(ma_slot_allocator* pAllocator, ma_uint64
MA_ASSERT(iBit < 32); /* This must be true due to the logic we used to actually calculate it. */
while (pAllocator->count > 0) {
while (c89atomic_load_i32(&pAllocator->count) > 0) {
/* CAS */
ma_uint32 oldBitfield;
ma_uint32 newBitfield;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment