aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alState.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-18 03:59:39 -0800
committerChris Robinson <[email protected]>2018-11-18 03:59:39 -0800
commitf48be9d73b4472570d28bf381d84e40cf65694c8 (patch)
tree59a4b4a9c869beab928cf06a35d3592dc4c334d0 /OpenAL32/alState.cpp
parent7433cb5f4cb0515dd6e314978f579ae91e2c63c4 (diff)
Remove the pointer-specific atomic exchange macros
Diffstat (limited to 'OpenAL32/alState.cpp')
-rw-r--r--OpenAL32/alState.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenAL32/alState.cpp b/OpenAL32/alState.cpp
index 8ff2c2c3..85789c5e 100644
--- a/OpenAL32/alState.cpp
+++ b/OpenAL32/alState.cpp
@@ -773,7 +773,7 @@ void UpdateContextProps(ALCcontext *context)
struct ALcontextProps *next;
do {
next = ATOMIC_LOAD(&props->next, almemory_order_relaxed);
- } while(ATOMIC_COMPARE_EXCHANGE_PTR_WEAK(&context->FreeContextProps, &props, next,
+ } while(ATOMIC_COMPARE_EXCHANGE_WEAK(&context->FreeContextProps, &props, next,
almemory_order_seq_cst, almemory_order_acquire) == 0);
}
@@ -788,8 +788,7 @@ void UpdateContextProps(ALCcontext *context)
props->mDistanceModel = context->mDistanceModel;
/* Set the new container for updating internal parameters. */
- props = static_cast<ALcontextProps*>(ATOMIC_EXCHANGE_PTR(&context->Update, props,
- almemory_order_acq_rel));
+ props = ATOMIC_EXCHANGE(&context->Update, props, almemory_order_acq_rel);
if(props)
{
/* If there was an unused update container, put it back in the