aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-20 10:45:01 -0800
committerChris Robinson <[email protected]>2018-11-20 10:45:01 -0800
commit191ea90de3994f9e98377ea9318c4c7b6885179c (patch)
tree53d42071b9ff0693b706c956a56f760361a11d41 /OpenAL32/Include
parent1e31ac469e129ccd5cde5fb890b31fa8b6815a9b (diff)
Use atomic_flags and atomic<bools>s where appropriate
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alAuxEffectSlot.h2
-rw-r--r--OpenAL32/Include/alListener.h2
-rw-r--r--OpenAL32/Include/alSource.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h
index 6e315e8f..dd44b436 100644
--- a/OpenAL32/Include/alAuxEffectSlot.h
+++ b/OpenAL32/Include/alAuxEffectSlot.h
@@ -69,7 +69,7 @@ struct ALeffectslot {
EffectState *State{nullptr};
} Effect;
- ATOMIC(ALenum) PropsClean{AL_TRUE};
+ std::atomic_flag PropsClean{true};
RefCount ref{0u};
diff --git a/OpenAL32/Include/alListener.h b/OpenAL32/Include/alListener.h
index 1e0a8265..6b1dcda9 100644
--- a/OpenAL32/Include/alListener.h
+++ b/OpenAL32/Include/alListener.h
@@ -28,7 +28,7 @@ struct ALlistener {
ALfloat Up[3]{0.0f, 1.0f, 0.0f};
ALfloat Gain{1.0f};
- ATOMIC(ALenum) PropsClean{AL_TRUE};
+ std::atomic_flag PropsClean{true};
/* Pointer to the most recent property values that are awaiting an update.
*/
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h
index 3d7d733e..9ad5577d 100644
--- a/OpenAL32/Include/alSource.h
+++ b/OpenAL32/Include/alSource.h
@@ -97,7 +97,7 @@ typedef struct ALsource {
/** Source Buffer Queue head. */
ALbufferlistitem *queue;
- ATOMIC(ALenum) PropsClean;
+ std::atomic_flag PropsClean{true};
/* Index into the context's Voices array. Lazily updated, only checked and
* reset when looking up the voice.