aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-26 21:37:58 -0800
committerChris Robinson <[email protected]>2018-11-26 21:39:31 -0800
commit2e73c2ca929b6cea23195270fe144f9ad3ae5c27 (patch)
tree697d2e65e4ca6ee5bfcf718b37a6073b766bff70 /OpenAL32/alSource.cpp
parentd8b9230ee4770095b0848aa38752e19d0090dd6a (diff)
Use a standard mutex for the proplock
Diffstat (limited to 'OpenAL32/alSource.cpp')
-rw-r--r--OpenAL32/alSource.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp
index 0515074c..bbcd318e 100644
--- a/OpenAL32/alSource.cpp
+++ b/OpenAL32/alSource.cpp
@@ -2192,7 +2192,7 @@ AL_API ALvoid AL_APIENTRY alSourcef(ALuint source, ALenum param, ALfloat value)
ContextRef context{GetContextRef()};
if(UNLIKELY(!context)) return;
- std::lock_guard<almtx_t> _{context->PropLock};
+ std::lock_guard<std::mutex> _{context->PropLock};
std::lock_guard<almtx_t> __{context->SourceLock};
ALsource *Source = LookupSource(context.get(), source);
if(UNLIKELY(!Source))
@@ -2208,7 +2208,7 @@ AL_API ALvoid AL_APIENTRY alSource3f(ALuint source, ALenum param, ALfloat value1
ContextRef context{GetContextRef()};
if(UNLIKELY(!context)) return;
- std::lock_guard<almtx_t> _{context->PropLock};
+ std::lock_guard<std::mutex> _{context->PropLock};
std::lock_guard<almtx_t> __{context->SourceLock};
ALsource *Source = LookupSource(context.get(), source);
if(UNLIKELY(!Source))
@@ -2227,7 +2227,7 @@ AL_API ALvoid AL_APIENTRY alSourcefv(ALuint source, ALenum param, const ALfloat
ContextRef context{GetContextRef()};
if(UNLIKELY(!context)) return;
- std::lock_guard<almtx_t> _{context->PropLock};
+ std::lock_guard<std::mutex> _{context->PropLock};
std::lock_guard<almtx_t> __{context->SourceLock};
ALsource *Source = LookupSource(context.get(), source);
if(UNLIKELY(!Source))
@@ -2246,7 +2246,7 @@ AL_API ALvoid AL_APIENTRY alSourcedSOFT(ALuint source, ALenum param, ALdouble va
ContextRef context{GetContextRef()};
if(UNLIKELY(!context)) return;
- std::lock_guard<almtx_t> _{context->PropLock};
+ std::lock_guard<std::mutex> _{context->PropLock};
std::lock_guard<almtx_t> __{context->SourceLock};
ALsource *Source = LookupSource(context.get(), source);
if(UNLIKELY(!Source))
@@ -2265,7 +2265,7 @@ AL_API ALvoid AL_APIENTRY alSource3dSOFT(ALuint source, ALenum param, ALdouble v
ContextRef context{GetContextRef()};
if(UNLIKELY(!context)) return;
- std::lock_guard<almtx_t> _{context->PropLock};
+ std::lock_guard<std::mutex> _{context->PropLock};
std::lock_guard<almtx_t> __{context->SourceLock};
ALsource *Source = LookupSource(context.get(), source);
if(UNLIKELY(!Source))
@@ -2284,7 +2284,7 @@ AL_API ALvoid AL_APIENTRY alSourcedvSOFT(ALuint source, ALenum param, const ALdo
ContextRef context{GetContextRef()};
if(UNLIKELY(!context)) return;
- std::lock_guard<almtx_t> _{context->PropLock};
+ std::lock_guard<std::mutex> _{context->PropLock};
std::lock_guard<almtx_t> __{context->SourceLock};
ALsource *Source = LookupSource(context.get(), source);
if(UNLIKELY(!Source))
@@ -2314,7 +2314,7 @@ AL_API ALvoid AL_APIENTRY alSourcei(ALuint source, ALenum param, ALint value)
ContextRef context{GetContextRef()};
if(UNLIKELY(!context)) return;
- std::lock_guard<almtx_t> _{context->PropLock};
+ std::lock_guard<std::mutex> _{context->PropLock};
std::lock_guard<almtx_t> __{context->SourceLock};
ALsource *Source = LookupSource(context.get(), source);
if(UNLIKELY(!Source))
@@ -2330,7 +2330,7 @@ AL_API void AL_APIENTRY alSource3i(ALuint source, ALenum param, ALint value1, AL
ContextRef context{GetContextRef()};
if(UNLIKELY(!context)) return;
- std::lock_guard<almtx_t> _{context->PropLock};
+ std::lock_guard<std::mutex> _{context->PropLock};
std::lock_guard<almtx_t> __{context->SourceLock};
ALsource *Source = LookupSource(context.get(), source);
if(UNLIKELY(!Source))
@@ -2349,7 +2349,7 @@ AL_API void AL_APIENTRY alSourceiv(ALuint source, ALenum param, const ALint *val
ContextRef context{GetContextRef()};
if(UNLIKELY(!context)) return;
- std::lock_guard<almtx_t> _{context->PropLock};
+ std::lock_guard<std::mutex> _{context->PropLock};
std::lock_guard<almtx_t> __{context->SourceLock};
ALsource *Source = LookupSource(context.get(), source);
if(UNLIKELY(!Source))
@@ -2368,7 +2368,7 @@ AL_API ALvoid AL_APIENTRY alSourcei64SOFT(ALuint source, ALenum param, ALint64SO
ContextRef context{GetContextRef()};
if(UNLIKELY(!context)) return;
- std::lock_guard<almtx_t> _{context->PropLock};
+ std::lock_guard<std::mutex> _{context->PropLock};
std::lock_guard<almtx_t> __{context->SourceLock};
ALsource *Source{LookupSource(context.get(), source)};
if(UNLIKELY(!Source))
@@ -2384,7 +2384,7 @@ AL_API void AL_APIENTRY alSource3i64SOFT(ALuint source, ALenum param, ALint64SOF
ContextRef context{GetContextRef()};
if(UNLIKELY(!context)) return;
- std::lock_guard<almtx_t> _{context->PropLock};
+ std::lock_guard<std::mutex> _{context->PropLock};
std::lock_guard<almtx_t> __{context->SourceLock};
ALsource *Source{LookupSource(context.get(), source)};
if(UNLIKELY(!Source))
@@ -2403,7 +2403,7 @@ AL_API void AL_APIENTRY alSourcei64vSOFT(ALuint source, ALenum param, const ALin
ContextRef context{GetContextRef()};
if(UNLIKELY(!context)) return;
- std::lock_guard<almtx_t> _{context->PropLock};
+ std::lock_guard<std::mutex> _{context->PropLock};
std::lock_guard<almtx_t> __{context->SourceLock};
ALsource *Source{LookupSource(context.get(), source)};
if(UNLIKELY(!Source))