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/alState.c | |
parent | e7217760f39071c7aec542c8f3fbaad21c71924a (diff) |
Rename EventLock to make it more clear it's protecting the callback
Diffstat (limited to 'OpenAL32/alState.c')
-rw-r--r-- | OpenAL32/alState.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c index 10fce3b5..8448e548 100644 --- a/OpenAL32/alState.c +++ b/OpenAL32/alState.c @@ -722,12 +722,12 @@ AL_API ALvoid AL_APIENTRY alDopplerVelocity(ALfloat value) "alDopplerVelocity is deprecated in AL1.1, use alSpeedOfSound"; const ALsizei msglen = (ALsizei)strlen(msg); ALbitfieldSOFT enabledevts; - almtx_lock(&context->EventLock); + almtx_lock(&context->EventCbLock); enabledevts = ATOMIC_LOAD(&context->EnabledEvts, almemory_order_relaxed); if((enabledevts&EventType_Deprecated) && context->EventCb) (*context->EventCb)(AL_EVENT_TYPE_DEPRECATED_SOFT, 0, 0, msglen, msg, context->EventParam); - almtx_unlock(&context->EventLock); + almtx_unlock(&context->EventCbLock); } if(!(value >= 0.0f && isfinite(value))) |