win32/ComWorker: remove debug log messages

This commit is contained in:
Max Kellermann 2021-03-05 13:15:59 +01:00
parent b14b0e5634
commit 7838265482

View File

@ -20,24 +20,16 @@
#include "ComWorker.hxx" #include "ComWorker.hxx"
#include "Com.hxx" #include "Com.hxx"
#include "thread/Name.hxx" #include "thread/Name.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
namespace {
static constexpr Domain com_worker_domain("com_worker");
}
Mutex COMWorker::mutex; Mutex COMWorker::mutex;
unsigned int COMWorker::reference_count = 0; unsigned int COMWorker::reference_count = 0;
std::optional<COMWorker::COMWorkerThread> COMWorker::thread; std::optional<COMWorker::COMWorkerThread> COMWorker::thread;
void COMWorker::COMWorkerThread::Work() noexcept { void COMWorker::COMWorkerThread::Work() noexcept {
FormatDebug(com_worker_domain, "Working thread started");
SetThreadName("COM Worker"); SetThreadName("COM Worker");
COM com{true}; COM com{true};
while (true) { while (true) {
if (!running_flag.test_and_set()) { if (!running_flag.test_and_set()) {
FormatDebug(com_worker_domain, "Working thread ended");
return; return;
} }
while (!spsc_buffer.empty()) { while (!spsc_buffer.empty()) {