Put set thread name calls behind a Win32 macro.

This commit is contained in:
Skyth 2024-12-15 20:05:21 +03:00
parent f1039fcc78
commit 682f8e4396

View file

@ -4047,8 +4047,9 @@ static void ProcSetPixelShader(const RenderCommand& cmd)
static std::thread g_renderThread([] static std::thread g_renderThread([]
{ {
#ifdef _WIN32
GuestThread::SetThreadName(GetCurrentThreadId(), "Render Thread"); GuestThread::SetThreadName(GetCurrentThreadId(), "Render Thread");
#endif
RenderCommand commands[32]; RenderCommand commands[32];
while (true) while (true)
@ -4857,7 +4858,9 @@ static moodycamel::BlockingConcurrentQueue<PipelineStateQueueItem> g_pipelineSta
static void PipelineCompilerThread() static void PipelineCompilerThread()
{ {
#ifdef _WIN32
GuestThread::SetThreadName(GetCurrentThreadId(), "Pipeline Compiler Thread"); GuestThread::SetThreadName(GetCurrentThreadId(), "Pipeline Compiler Thread");
#endif
std::unique_ptr<GuestThreadContext> ctx; std::unique_ptr<GuestThreadContext> ctx;
while (true) while (true)
@ -5508,8 +5511,9 @@ static bool CheckMadeAll(const T& modelData)
static void ModelConsumerThread() static void ModelConsumerThread()
{ {
#ifdef _WIN32
GuestThread::SetThreadName(GetCurrentThreadId(), "Model Consumer Thread"); GuestThread::SetThreadName(GetCurrentThreadId(), "Model Consumer Thread");
#endif
std::vector<boost::shared_ptr<Hedgehog::Database::CDatabaseData>> localPendingDataQueue; std::vector<boost::shared_ptr<Hedgehog::Database::CDatabaseData>> localPendingDataQueue;
std::unique_ptr<GuestThreadContext> ctx; std::unique_ptr<GuestThreadContext> ctx;