diff options
author | Chris Robinson <[email protected]> | 2018-11-23 16:16:31 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-23 16:16:31 -0800 |
commit | df057d41181b8acc83cb8f64a7dc118b771f9198 (patch) | |
tree | 2ebe7f93f083b065977549547913fd331d08c6e7 /Alc/alcontext.h | |
parent | 73528c9f550c7df6b1e0f2b54e61c02bf7eac00a (diff) |
Make the context VoiceCount atomic
Diffstat (limited to 'Alc/alcontext.h')
-rw-r--r-- | Alc/alcontext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alcontext.h b/Alc/alcontext.h index c9cfa985..9845b686 100644 --- a/Alc/alcontext.h +++ b/Alc/alcontext.h @@ -95,7 +95,7 @@ struct ALCcontext_struct { ATOMIC(ALeffectslotProps*) FreeEffectslotProps{nullptr}; ALvoice **Voices{nullptr}; - ALsizei VoiceCount{0}; + std::atomic<ALsizei> VoiceCount{0}; ALsizei MaxVoices{0}; ATOMIC(ALeffectslotArray*) ActiveAuxSlots{nullptr}; |