diff options
author | Chris Robinson <[email protected]> | 2011-09-02 15:57:50 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-02 15:57:50 -0700 |
commit | 05114815baed650eb2f6930456c6fe3762f30cd7 (patch) | |
tree | 5fd6a128f43686ad5b3299d568dc3710e2546c7e | |
parent | 9080d5fda03d16143e2a446df72fe16d94a40c59 (diff) |
Avoid an unnecessary lock
-rw-r--r-- | Alc/ALc.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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; } |