diff options
author | Chris Robinson <[email protected]> | 2018-01-30 12:34:25 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-30 12:34:25 -0800 |
commit | 0394d5a44fd5b1c90c7e4ae9d660bec8a19175f1 (patch) | |
tree | 02663d4f7064ba80d0edbe3e2c0b678b4aa1f13a /OpenAL32/event.c | |
parent | e7217760f39071c7aec542c8f3fbaad21c71924a (diff) |
Rename EventLock to make it more clear it's protecting the callback
Diffstat (limited to 'OpenAL32/event.c')
-rw-r--r-- | OpenAL32/event.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenAL32/event.c b/OpenAL32/event.c index 93d68d7a..9a3a92b4 100644 --- a/OpenAL32/event.c +++ b/OpenAL32/event.c @@ -37,7 +37,6 @@ AL_API void AL_APIENTRY alEventControlSOFT(ALsizei count, const ALenum *types, A SETERR_GOTO(context, AL_INVALID_ENUM, done, "Invalid event type 0x%04x", types[i]); } - almtx_lock(&context->EventLock); if(enable) { ALbitfieldSOFT enabledevts = ATOMIC_LOAD(&context->EnabledEvts, almemory_order_relaxed); @@ -57,7 +56,6 @@ AL_API void AL_APIENTRY alEventControlSOFT(ALsizei count, const ALenum *types, A { } } - almtx_unlock(&context->EventLock); done: ALCcontext_DecRef(context); @@ -70,10 +68,10 @@ AL_API void AL_APIENTRY alEventCallbackSOFT(ALEVENTPROCSOFT callback, void *user context = GetContextRef(); if(!context) return; - almtx_lock(&context->EventLock); + almtx_lock(&context->EventCbLock); context->EventCb = callback; context->EventParam = userParam; - almtx_unlock(&context->EventLock); + almtx_unlock(&context->EventCbLock); ALCcontext_DecRef(context); } |