Skip to content

Use pthread_cpu_number_np to get current core on OSX #137230

Closed

Description

@VSadov

pthread_cpu_number_np is available on all supported versions of OSX.

We should use this API for Thread.GetCurrentProcessorId() similarly to sched_getcpu()

Activity

  1. added
    untriaged
    on Nov 10, 2026
  2. dotnet-policy-service commented on Nov 10, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @agocke
    See info in area-owners.md if you want to be subscribed.

  3. removed
    untriaged
    on Nov 11, 2026
  4. added a commit that references this issue on Nov 11, 2026
    719ca25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status
    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions