_setidealprocessor

This commit is contained in:
2023-05-21 20:28:38 +03:00
parent af326f934c
commit 279badf0f9
5 changed files with 18 additions and 4 deletions

View File

@@ -368,6 +368,11 @@ void Win32Platform::SetThreadAffinityMask(uint64 affinityMask)
::SetThreadAffinityMask(::GetCurrentThread(), (DWORD_PTR)affinityMask);
}
void Win32Platform::SetThreadIdealProcessor(uint32 idealProcessor)
{
::SetThreadIdealProcessor(::GetCurrentThread(), idealProcessor);
}
void Win32Platform::Sleep(int32 milliseconds)
{
if (milliseconds < 0)