diff options
author | Chris Robinson <[email protected]> | 2018-11-17 06:07:04 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-17 06:07:04 -0800 |
commit | 7b537c795bd174b4b02418a37b377b4da5cfe266 (patch) | |
tree | b0e7485d4ae66518194bd03128f56ffda1c199ec /Alc/backends/wasapi.cpp | |
parent | 1fae8c16a8c0634ffa44b4a2e25f3be4899ea7e2 (diff) |
Don't pass the current thread to althrd_setname
Diffstat (limited to 'Alc/backends/wasapi.cpp')
-rw-r--r-- | Alc/backends/wasapi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/wasapi.cpp b/Alc/backends/wasapi.cpp index 4ebd6f25..7f52bafe 100644 --- a/Alc/backends/wasapi.cpp +++ b/Alc/backends/wasapi.cpp @@ -580,7 +580,7 @@ FORCE_ALIGN int ALCwasapiPlayback_mixerProc(ALCwasapiPlayback *self) } SetRTPriority(); - althrd_setname(althrd_current(), MIXER_THREAD_NAME); + althrd_setname(MIXER_THREAD_NAME); ALuint update_size{device->UpdateSize}; UINT32 buffer_len{update_size * device->NumUpdates}; @@ -1251,7 +1251,7 @@ FORCE_ALIGN int ALCwasapiCapture_recordProc(ALCwasapiCapture *self) return 1; } - althrd_setname(althrd_current(), RECORD_THREAD_NAME); + althrd_setname(RECORD_THREAD_NAME); std::vector<float> samples; while(!self->mKillNow.load(std::memory_order_relaxed)) |