1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

Add trace logging to thread_ctrl::set_thread_affinity_mask

This commit is contained in:
Nekotekina 2021-01-26 19:59:48 +03:00
parent c24d89dd34
commit 22c55cbcfa

View File

@ -2773,6 +2773,8 @@ DECLARE(thread_ctrl::process_affinity_mask) = get_process_affinity_mask();
void thread_ctrl::set_thread_affinity_mask(u64 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 #ifdef _WIN32
HANDLE _this_thread = GetCurrentThread(); HANDLE _this_thread = GetCurrentThread();
if (!SetThreadAffinityMask(_this_thread, !mask ? process_affinity_mask : mask)) if (!SetThreadAffinityMask(_this_thread, !mask ? process_affinity_mask : mask))