mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
Add trace logging to thread_ctrl::set_thread_affinity_mask
This commit is contained in:
parent
c24d89dd34
commit
22c55cbcfa
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user