diff options
-rw-r--r-- | Alc/ALc.c | 4 | ||||
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 2 | ||||
-rw-r--r-- | OpenAL32/alListener.c | 2 | ||||
-rw-r--r-- | OpenAL32/alSource.c | 2 |
4 files changed, 5 insertions, 5 deletions
@@ -2377,10 +2377,10 @@ static void FreeContext(ALCcontext *context) al_free(lprops); } count = 0; - lprops = ATOMIC_LOAD(&listener->FreeList, almemory_order_consume); + lprops = ATOMIC_LOAD(&listener->FreeList, almemory_order_acquire); while(lprops) { - struct ALlistenerProps *next = ATOMIC_LOAD(&lprops->next, almemory_order_consume); + struct ALlistenerProps *next = ATOMIC_LOAD(&lprops->next, almemory_order_acquire); al_free(lprops); lprops = next; ++count; diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index b860b2b0..4f1601ed 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -647,7 +647,7 @@ void UpdateEffectSlotProps(ALeffectslot *slot) next = ATOMIC_LOAD(&props->next, almemory_order_relaxed); } while(ATOMIC_COMPARE_EXCHANGE_WEAK(struct ALeffectslotProps*, &slot->FreeList, &props, next, almemory_order_seq_cst, - almemory_order_consume) == 0); + almemory_order_acquire) == 0); } /* Copy in current property values. */ diff --git a/OpenAL32/alListener.c b/OpenAL32/alListener.c index 08ece19d..4e99f24e 100644 --- a/OpenAL32/alListener.c +++ b/OpenAL32/alListener.c @@ -470,7 +470,7 @@ void UpdateListenerProps(ALCcontext *context) next = ATOMIC_LOAD(&props->next, almemory_order_relaxed); } while(ATOMIC_COMPARE_EXCHANGE_WEAK(struct ALlistenerProps*, &listener->FreeList, &props, next, almemory_order_seq_cst, - almemory_order_consume) == 0); + almemory_order_acquire) == 0); } /* Copy in current property values. */ diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index f20498f4..7f187dfe 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -2829,7 +2829,7 @@ static void UpdateSourceProps(ALsource *source, ALuint num_sends) next = ATOMIC_LOAD(&props->next, almemory_order_relaxed); } while(ATOMIC_COMPARE_EXCHANGE_WEAK(struct ALsourceProps*, &source->FreeList, &props, next, almemory_order_seq_cst, - almemory_order_consume) == 0); + almemory_order_acquire) == 0); } /* Copy in current property values. */ |