aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-30 12:34:25 -0800
committerChris Robinson <[email protected]>2018-01-30 12:34:25 -0800
commit0394d5a44fd5b1c90c7e4ae9d660bec8a19175f1 (patch)
tree02663d4f7064ba80d0edbe3e2c0b678b4aa1f13a /Alc/ALc.c
parente7217760f39071c7aec542c8f3fbaad21c71924a (diff)
Rename EventLock to make it more clear it's protecting the callback
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 53979704..04b8f9bd 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -2611,7 +2611,7 @@ static ALvoid InitContext(ALCcontext *Context)
Context->MetersPerUnit = AL_DEFAULT_METERS_PER_UNIT;
ATOMIC_FLAG_TEST_AND_SET(&Context->PropsClean, almemory_order_relaxed);
ATOMIC_INIT(&Context->DeferUpdates, AL_FALSE);
- almtx_init(&Context->EventLock, almtx_plain);
+ almtx_init(&Context->EventCbLock, almtx_plain);
ATOMIC_INIT(&Context->EnabledEvts, 0);
Context->EventCb = NULL;
Context->EventParam = NULL;
@@ -2743,7 +2743,7 @@ static void FreeContext(ALCcontext *context)
}
TRACE("Freed "SZFMT" listener property object%s\n", count, (count==1)?"":"s");
- almtx_destroy(&context->EventLock);
+ almtx_destroy(&context->EventCbLock);
ALCdevice_DecRef(context->Device);
context->Device = NULL;