From 05114815baed650eb2f6930456c6fe3762f30cd7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 2 Sep 2011 15:57:50 -0700 Subject: [PATCH] Avoid an unnecessary lock --- Alc/ALc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index 6ce6feaa..627cc8c8 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -2171,12 +2171,7 @@ ALC_API ALCcontext* ALC_APIENTRY alcGetCurrentContext(ALCvoid) ALCcontext *Context; Context = pthread_getspecific(LocalContext); - if(!Context) - { - LockLists(); - Context = GlobalContext; - UnlockLists(); - } + if(!Context) Context = GlobalContext; return Context; } -- 2.11.4.GIT