diff options
author | Chris Robinson <[email protected]> | 2011-09-11 06:58:49 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-11 06:58:49 -0700 |
commit | 97fa7cc9ac23ca0168617cc40800e690e6b03e73 (patch) | |
tree | e34bc5f707aa07137c066bb266a9e3db9c5f9b29 | |
parent | 2648a9b011ed7e032ff19376d06b9b60cae32614 (diff) |
More lock avoidance
-rw-r--r-- | OpenAL32/alFilter.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c index dd338e8d..bdb0b47d 100644 --- a/OpenAL32/alFilter.c +++ b/OpenAL32/alFilter.c @@ -187,7 +187,7 @@ AL_API ALvoid AL_APIENTRY alFilteriv(ALuint filter, ALenum param, ALint *piValue return; } - Context = GetLockedContext(); + Context = GetContextRef(); if(!Context) return; Device = Context->Device; @@ -203,7 +203,7 @@ AL_API ALvoid AL_APIENTRY alFilteriv(ALuint filter, ALenum param, ALint *piValue else alSetError(Context, AL_INVALID_NAME); - UnlockContext(Context); + ALCcontext_DecRef(Context); } AL_API ALvoid AL_APIENTRY alFilterf(ALuint filter, ALenum param, ALfloat flValue) @@ -268,7 +268,7 @@ AL_API ALvoid AL_APIENTRY alGetFilteri(ALuint filter, ALenum param, ALint *piVal ALCdevice *Device; ALfilter *ALFilter; - Context = GetLockedContext(); + Context = GetContextRef(); if(!Context) return; Device = Context->Device; @@ -288,7 +288,7 @@ AL_API ALvoid AL_APIENTRY alGetFilteri(ALuint filter, ALenum param, ALint *piVal else alSetError(Context, AL_INVALID_NAME); - UnlockContext(Context); + ALCcontext_DecRef(Context); } AL_API ALvoid AL_APIENTRY alGetFilteriv(ALuint filter, ALenum param, ALint *piValues) @@ -303,7 +303,7 @@ AL_API ALvoid AL_APIENTRY alGetFilteriv(ALuint filter, ALenum param, ALint *piVa return; } - Context = GetLockedContext(); + Context = GetContextRef(); if(!Context) return; Device = Context->Device; @@ -319,7 +319,7 @@ AL_API ALvoid AL_APIENTRY alGetFilteriv(ALuint filter, ALenum param, ALint *piVa else alSetError(Context, AL_INVALID_NAME); - UnlockContext(Context); + ALCcontext_DecRef(Context); } AL_API ALvoid AL_APIENTRY alGetFilterf(ALuint filter, ALenum param, ALfloat *pflValue) |