aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-28 16:58:41 -0800
committerChris Robinson <[email protected]>2018-01-28 16:58:41 -0800
commitc2710ffe87dae7d292e77ed9663783e9d5c227dc (patch)
tree87b273d1b4bd077426670b056402185144e535b8 /Alc/ALc.c
parent782eb650c73fe01d1008a2a1bb9da56b65211eff (diff)
Make EnabledEvts atomic
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index ea387c6d..21cabf5f 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -2554,7 +2554,7 @@ static ALvoid InitContext(ALCcontext *Context)
ATOMIC_FLAG_TEST_AND_SET(&Context->PropsClean, almemory_order_relaxed);
ATOMIC_INIT(&Context->DeferUpdates, AL_FALSE);
almtx_init(&Context->EventLock, almtx_plain);
- Context->EnabledEvts = 0;
+ ATOMIC_INIT(&Context->EnabledEvts, 0);
Context->EventCb = NULL;
Context->EventParam = NULL;