aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/winmm.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-17 06:07:04 -0800
committerChris Robinson <[email protected]>2018-11-17 06:07:04 -0800
commit7b537c795bd174b4b02418a37b377b4da5cfe266 (patch)
treeb0e7485d4ae66518194bd03128f56ffda1c199ec /Alc/backends/winmm.cpp
parent1fae8c16a8c0634ffa44b4a2e25f3be4899ea7e2 (diff)
Don't pass the current thread to althrd_setname
Diffstat (limited to 'Alc/backends/winmm.cpp')
-rw-r--r--Alc/backends/winmm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/winmm.cpp b/Alc/backends/winmm.cpp
index 0fb85f66..1d0a8ecc 100644
--- a/Alc/backends/winmm.cpp
+++ b/Alc/backends/winmm.cpp
@@ -202,7 +202,7 @@ FORCE_ALIGN int ALCwinmmPlayback_mixerProc(ALCwinmmPlayback *self)
ALCdevice *device = STATIC_CAST(ALCbackend, self)->mDevice;
SetRTPriority();
- althrd_setname(althrd_current(), MIXER_THREAD_NAME);
+ althrd_setname(MIXER_THREAD_NAME);
ALCwinmmPlayback_lock(self);
while(!self->killNow.load(std::memory_order_acquire) &&
@@ -484,7 +484,7 @@ int ALCwinmmCapture_captureProc(ALCwinmmCapture *self)
{
ALCdevice *device = STATIC_CAST(ALCbackend, self)->mDevice;
- althrd_setname(althrd_current(), RECORD_THREAD_NAME);
+ althrd_setname(RECORD_THREAD_NAME);
ALCwinmmCapture_lock(self);
while(!self->killNow.load(std::memory_order_acquire) &&