From 22c55cbcfae5499ffe0fedda177826d59f8f3b68 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 26 Jan 2021 19:59:48 +0300 Subject: [PATCH] Add trace logging to thread_ctrl::set_thread_affinity_mask --- Utilities/Thread.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index 3854e26f4b..f9559a4bbd 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -2773,6 +2773,8 @@ DECLARE(thread_ctrl::process_affinity_mask) = get_process_affinity_mask(); void thread_ctrl::set_thread_affinity_mask(u64 mask) { + sig_log.trace("set_thread_affinity_mask called with mask=0x%x", mask); + #ifdef _WIN32 HANDLE _this_thread = GetCurrentThread(); if (!SetThreadAffinityMask(_this_thread, !mask ? process_affinity_mask : mask))