Commit 481c330c authored by Shen-Ta Hsieh's avatar Shen-Ta Hsieh Committed by Max Kellermann

src/output: Set thread name for Wasapi output thread

parent 7ef489e0
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "mixer/MixerList.hxx" #include "mixer/MixerList.hxx"
#include "thread/Cond.hxx" #include "thread/Cond.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "thread/Name.hxx"
#include "thread/Thread.hxx" #include "thread/Thread.hxx"
#include "util/AllocatedString.hxx" #include "util/AllocatedString.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
...@@ -231,6 +232,7 @@ IAudioClient *wasapi_output_get_client(WasapiOutput &output) noexcept { ...@@ -231,6 +232,7 @@ IAudioClient *wasapi_output_get_client(WasapiOutput &output) noexcept {
} }
void WasapiOutputThread::Work() noexcept { void WasapiOutputThread::Work() noexcept {
SetThreadName("Wasapi Output Worker");
FormatDebug(wasapi_output_domain, "Working thread started"); FormatDebug(wasapi_output_domain, "Working thread started");
try { try {
com.emplace(); com.emplace();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment