diff options
author | Shen-Ta Hsieh <ibmibmibm.tw@gmail.com> | 2020-12-02 07:36:40 +0800 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2021-02-15 17:51:49 +0100 |
commit | 481c330c17b2457d001b03c27edf6f0cde446278 (patch) | |
tree | 08108005e2261879cca25c5faf8a1789b23c78fd /src | |
parent | 7ef489e0574f9ee3a2c2bd71ca5d394d88281a56 (diff) |
src/output: Set thread name for Wasapi output thread
Diffstat (limited to 'src')
-rw-r--r-- | src/output/plugins/WasapiOutputPlugin.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/output/plugins/WasapiOutputPlugin.cxx b/src/output/plugins/WasapiOutputPlugin.cxx index 898e2e910..ce91f4e5b 100644 --- a/src/output/plugins/WasapiOutputPlugin.cxx +++ b/src/output/plugins/WasapiOutputPlugin.cxx @@ -24,6 +24,7 @@ #include "mixer/MixerList.hxx" #include "thread/Cond.hxx" #include "thread/Mutex.hxx" +#include "thread/Name.hxx" #include "thread/Thread.hxx" #include "util/AllocatedString.hxx" #include "util/Domain.hxx" @@ -231,6 +232,7 @@ IAudioClient *wasapi_output_get_client(WasapiOutput &output) noexcept { } void WasapiOutputThread::Work() noexcept { + SetThreadName("Wasapi Output Worker"); FormatDebug(wasapi_output_domain, "Working thread started"); try { com.emplace(); |