mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-06 14:19:59 -05:00
commit
e9b95e4f6c
1 changed files with 2 additions and 2 deletions
|
@ -710,8 +710,8 @@ inline bool AffinityBugWorkaround(void(*pfn)(void*))
|
||||||
{
|
{
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
// Sometimes after a few hours affinity gets stuck on one processor
|
// Sometimes after a few hours affinity gets stuck on one processor
|
||||||
DWORD dwProcessAffinityMask = -1;
|
DWORD_PTR dwProcessAffinityMask = -1;
|
||||||
DWORD dwSystemAffinityMask = -1;
|
DWORD_PTR dwSystemAffinityMask = -1;
|
||||||
GetProcessAffinityMask(GetCurrentProcess(), &dwProcessAffinityMask, &dwSystemAffinityMask);
|
GetProcessAffinityMask(GetCurrentProcess(), &dwProcessAffinityMask, &dwSystemAffinityMask);
|
||||||
DWORD dwPrev1 = SetThreadAffinityMask(GetCurrentThread(), dwProcessAffinityMask);
|
DWORD dwPrev1 = SetThreadAffinityMask(GetCurrentThread(), dwProcessAffinityMask);
|
||||||
DWORD dwPrev2 = SetThreadAffinityMask(GetCurrentThread(), dwProcessAffinityMask);
|
DWORD dwPrev2 = SetThreadAffinityMask(GetCurrentThread(), dwProcessAffinityMask);
|
||||||
|
|
Loading…
Add table
Reference in a new issue