diff options
author | Chris Robinson <[email protected]> | 2018-11-13 20:26:32 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-13 20:26:32 -0800 |
commit | a5f68c21214e6f85ade835cd29045026797ac2a4 (patch) | |
tree | 3b995975906303cfc42b8dc3054f3bbed632dbbb /OpenAL32/Include | |
parent | 5867c7b8c213aa47659e7c6e6cafddc643d9ea76 (diff) |
Avoid using ATOMIC_FLAG
Although it cant potentially be better than a regular atomic, it presents
compatibility issues when non-C11 atomics are mixed with C++
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alAuxEffectSlot.h | 2 | ||||
-rw-r--r-- | OpenAL32/Include/alListener.h | 2 | ||||
-rw-r--r-- | OpenAL32/Include/alMain.h | 2 | ||||
-rw-r--r-- | OpenAL32/Include/alSource.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h index 97a3906d..16de9a79 100644 --- a/OpenAL32/Include/alAuxEffectSlot.h +++ b/OpenAL32/Include/alAuxEffectSlot.h @@ -111,7 +111,7 @@ typedef struct ALeffectslot { ALeffectState *State; } Effect; - ATOMIC_FLAG PropsClean; + ATOMIC(ALenum) PropsClean; RefCount ref; diff --git a/OpenAL32/Include/alListener.h b/OpenAL32/Include/alListener.h index 0d80a8d7..9efadf47 100644 --- a/OpenAL32/Include/alListener.h +++ b/OpenAL32/Include/alListener.h @@ -36,7 +36,7 @@ typedef struct ALlistener { ALfloat Up[3]; ALfloat Gain; - ATOMIC_FLAG PropsClean; + ATOMIC(ALenum) PropsClean; /* Pointer to the most recent property values that are awaiting an update. */ diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 8cb22615..666a8ade 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -808,7 +808,7 @@ struct ALCcontext_struct { ALfloat SpeedOfSound; ALfloat MetersPerUnit; - ATOMIC_FLAG PropsClean; + ATOMIC(ALenum) PropsClean; ATOMIC(ALenum) DeferUpdates; almtx_t PropLock; diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index 5f07c09d..f7749de3 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -98,7 +98,7 @@ typedef struct ALsource { /** Source Buffer Queue head. */ ALbufferlistitem *queue; - ATOMIC_FLAG PropsClean; + ATOMIC(ALenum) PropsClean; /* Index into the context's Voices array. Lazily updated, only checked and * reset when looking up the voice. |