src/output: Set thread name for Wasapi output thread

This commit is contained in:
Shen-Ta Hsieh 2020-12-02 07:36:40 +08:00 committed by Max Kellermann
parent 7ef489e057
commit 481c330c17
1 changed files with 2 additions and 0 deletions

View File

@ -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();