Skip to content

Make MTELG's support for CPU pinning public#3543

Merged
Lukasa merged 3 commits intoapple:mainfrom
Lukasa:cb-make-pinned-ids-public-finally
Mar 9, 2026
Merged

Make MTELG's support for CPU pinning public#3543
Lukasa merged 3 commits intoapple:mainfrom
Lukasa:cb-make-pinned-ids-public-finally

Conversation

@Lukasa
Copy link
Copy Markdown
Contributor

@Lukasa Lukasa commented Mar 9, 2026

Motivation:

NIO has had support for CPU pinning for 8 years, but nobody has ever used it. Ask me how I know?

Modifications:

  • Make the CPU pinning constructor public.

Result:

Users can pin MTELG threads to specific CPU cores, finally.

Motivation:

NIO has had support for CPU pinning for 8 years, but nobody has
ever used it. Ask me how I know?

Modifications:

- Make the CPU pinning constructor public.

Result:

Users can pin MTELG threads to specific CPU cores, _finally_.
@Lukasa Lukasa added the 🆕 semver/minor Adds new public API. label Mar 9, 2026
@Lukasa Lukasa enabled auto-merge (squash) March 9, 2026 16:41
/// - arguments:
/// - pinnedCPUIds: The CPU ids to apply to the `NIOThread`s.
convenience init(pinnedCPUIds: [Int]) {
public convenience init(pinnedCPUIds: [Int]) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be pinnedCPUIDs (#fileID, NIOThread.currentThreadID and others)

@Lukasa Lukasa merged commit 5b3cab2 into apple:main Mar 9, 2026
51 of 55 checks passed
@Lukasa Lukasa deleted the cb-make-pinned-ids-public-finally branch March 9, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants