GetCurrentThreadId function kernel32

int GetCurrentThreadId()

Retrieves the thread identifier of the calling thread.

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

Implementation

@pragma('vm:prefer-inline')
int GetCurrentThreadId() => _GetCurrentThreadId();