aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-11-17 00:46:46 -0800
committerChris Robinson <[email protected]>2016-11-17 00:46:46 -0800
commita502a41be340826585f9c91b3a8d9a52b5601b54 (patch)
tree6824358e6de3b8215a89bfaf64cfbbb3d4323f8b
parentcaead294f292cb6a8d75eaa4eeb26829a06f569c (diff)
Stop using almemory_order_consume
-rw-r--r--Alc/ALc.c4
-rw-r--r--OpenAL32/alAuxEffectSlot.c2
-rw-r--r--OpenAL32/alListener.c2
-rw-r--r--OpenAL32/alSource.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 7e220205..8c855157 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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. */