diff options
author | Chris Robinson <[email protected]> | 2018-11-19 01:20:03 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-19 01:20:03 -0800 |
commit | 6e114a7a70c90d575e5978c5bcac95307bec0140 (patch) | |
tree | 82126cd9d68bf76de7e049dc5dbfc216a1b1f9b6 /OpenAL32 | |
parent | 190de1452e647aa9d45099d782d20473cba1284c (diff) |
Replace ATOMIC_REPLACE_HEAD with an inline function
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alAuxEffectSlot.cpp | 2 | ||||
-rw-r--r-- | OpenAL32/alListener.cpp | 2 | ||||
-rw-r--r-- | OpenAL32/alSource.cpp | 2 | ||||
-rw-r--r-- | OpenAL32/alState.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alAuxEffectSlot.cpp b/OpenAL32/alAuxEffectSlot.cpp index fc4b4d1b..037c99dd 100644 --- a/OpenAL32/alAuxEffectSlot.cpp +++ b/OpenAL32/alAuxEffectSlot.cpp @@ -730,7 +730,7 @@ void UpdateEffectSlotProps(ALeffectslot *slot, ALCcontext *context) if(props->State) ALeffectState_DecRef(props->State); props->State = nullptr; - ATOMIC_REPLACE_HEAD(struct ALeffectslotProps*, &context->FreeEffectslotProps, props); + AtomicReplaceHead(context->FreeEffectslotProps, props); } if(oldstate) diff --git a/OpenAL32/alListener.cpp b/OpenAL32/alListener.cpp index 05fd7a21..574f897c 100644 --- a/OpenAL32/alListener.cpp +++ b/OpenAL32/alListener.cpp @@ -498,6 +498,6 @@ void UpdateListenerProps(ALCcontext *context) /* If there was an unused update container, put it back in the * freelist. */ - ATOMIC_REPLACE_HEAD(struct ALlistenerProps*, &context->FreeListenerProps, props); + AtomicReplaceHead(context->FreeListenerProps, props); } } diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp index 2fe81320..ac220a2e 100644 --- a/OpenAL32/alSource.cpp +++ b/OpenAL32/alSource.cpp @@ -3236,7 +3236,7 @@ static void UpdateSourceProps(ALsource *source, ALvoice *voice, ALsizei num_send /* If there was an unused update container, put it back in the * freelist. */ - ATOMIC_REPLACE_HEAD(struct ALvoiceProps*, &context->FreeVoiceProps, props); + AtomicReplaceHead(context->FreeVoiceProps, props); } } diff --git a/OpenAL32/alState.cpp b/OpenAL32/alState.cpp index 85789c5e..836853bb 100644 --- a/OpenAL32/alState.cpp +++ b/OpenAL32/alState.cpp @@ -794,6 +794,6 @@ void UpdateContextProps(ALCcontext *context) /* If there was an unused update container, put it back in the * freelist. */ - ATOMIC_REPLACE_HEAD(struct ALcontextProps*, &context->FreeContextProps, props); + AtomicReplaceHead(context->FreeContextProps, props); } } |