Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread.GetCurrentProcessorId; Environment.CurrentManagedThreadId #179

Open
OwnageIsMagic opened this issue Feb 25, 2022 · 0 comments
Open

Comments

@OwnageIsMagic
Copy link
Collaborator

Thread.GetCurrentProcessorId
if native method is unavailable, it using Environment.CurrentManagedThreadId, which is also new API (returning Thread.CurrentThread.ManagedThreadId)
https://github.com/dotnet/runtime/blob/1c927462696f5af7d5e667f54b1c39452cba4b2d/src/mono/System.Private.CoreLib/src/System/Threading/Thread.Mono.cs#L192
https://github.com/dotnet/runtime/blob/ef2c9044e94fa1997fff7105fb7fdc4ec7802dac/src/coreclr/nativeaot/System.Private.CoreLib/src/System/Threading/Thread.CoreRT.Unix.cs#L166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant