GetCurrentProcessorNumber function kernel32

int GetCurrentProcessorNumber()

Retrieves the number of the processor the current thread was running on during the call to this function.

To learn more, see learn.microsoft.com/windows/win32/api/processthreadsapi/nf-processthreadsapi-getcurrentprocessornumber.

Implementation

@pragma('vm:prefer-inline')
int GetCurrentProcessorNumber() => _GetCurrentProcessorNumber();