diff options
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alMain.h | 1 | ||||
-rw-r--r-- | OpenAL32/event.c | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 86ac49dc..3a08e8c1 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -827,7 +827,6 @@ struct ALCcontext_struct { ATOMIC(struct ALeffectslotArray*) ActiveAuxSlots; - almtx_t EventThrdLock; althrd_t EventThread; alsem_t EventSem; struct ll_ringbuffer *AsyncEvents; diff --git a/OpenAL32/event.c b/OpenAL32/event.c index a76746bd..c0bf4204 100644 --- a/OpenAL32/event.c +++ b/OpenAL32/event.c @@ -73,7 +73,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->EventThrdLock); if(enable) { enabledevts = ATOMIC_LOAD(&context->EnabledEvts, almemory_order_relaxed); @@ -98,7 +97,6 @@ AL_API void AL_APIENTRY alEventControlSOFT(ALsizei count, const ALenum *types, A almtx_lock(&context->EventCbLock); almtx_unlock(&context->EventCbLock); } - almtx_unlock(&context->EventThrdLock); done: ALCcontext_DecRef(context); |