From 053599b2435844eddcc084414ab9dd1c5ad7ec23 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 26 Nov 2018 14:48:26 -0800 Subject: Avoid using the ATOMIC() macro --- Alc/alcontext.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'Alc/alcontext.h') diff --git a/Alc/alcontext.h b/Alc/alcontext.h index c6824d78..056d9003 100644 --- a/Alc/alcontext.h +++ b/Alc/alcontext.h @@ -71,7 +71,7 @@ struct ALCcontext_struct { al::vector EffectSlotList; almtx_t EffectSlotLock; - ATOMIC(ALenum) LastError{AL_NO_ERROR}; + std::atomic LastError{AL_NO_ERROR}; DistanceModel mDistanceModel{DistanceModel::Default}; ALboolean SourceDistanceModel{AL_FALSE}; @@ -90,30 +90,30 @@ struct ALCcontext_struct { * indicates if updates are currently happening). */ RefCount UpdateCount{0u}; - ATOMIC(ALenum) HoldUpdates{AL_FALSE}; + std::atomic HoldUpdates{AL_FALSE}; ALfloat GainBoost{1.0f}; - ATOMIC(ALcontextProps*) Update{nullptr}; + std::atomic Update{nullptr}; /* Linked lists of unused property containers, free to use for future * updates. */ - ATOMIC(ALcontextProps*) FreeContextProps{nullptr}; - ATOMIC(ALlistenerProps*) FreeListenerProps{nullptr}; - ATOMIC(ALvoiceProps*) FreeVoiceProps{nullptr}; - ATOMIC(ALeffectslotProps*) FreeEffectslotProps{nullptr}; + std::atomic FreeContextProps{nullptr}; + std::atomic FreeListenerProps{nullptr}; + std::atomic FreeVoiceProps{nullptr}; + std::atomic FreeEffectslotProps{nullptr}; ALvoice **Voices{nullptr}; std::atomic VoiceCount{0}; ALsizei MaxVoices{0}; - ATOMIC(ALeffectslotArray*) ActiveAuxSlots{nullptr}; + std::atomic ActiveAuxSlots{nullptr}; std::thread EventThread; alsem_t EventSem; ll_ringbuffer *AsyncEvents{nullptr}; - ATOMIC(ALbitfieldSOFT) EnabledEvts{0u}; + std::atomic EnabledEvts{0u}; std::mutex EventCbLock; ALEVENTPROCSOFT EventCb{}; void *EventParam{nullptr}; @@ -124,7 +124,7 @@ struct ALCcontext_struct { ALCdevice *const Device; const ALCchar *ExtensionList{nullptr}; - ATOMIC(ALCcontext*) next{nullptr}; + std::atomic next{nullptr}; ALlistener Listener{}; @@ -199,7 +199,7 @@ struct ALcontextProps { DistanceModel mDistanceModel; ALfloat MetersPerUnit; - ATOMIC(struct ALcontextProps*) next; + std::atomic next; }; #endif /* ALCONTEXT_H */ -- cgit v1.2.3