Skip to content

Conversation

@Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Aug 29, 2025

Motivation

In preparation for adopting FoundationEssentials where available, we need to avoid using Thread as that isn't available. To that end, let's bring over NIO's ThreadSpecificVariable wrapper.

Modifications

Bring over NIO's ThreadSpecificVariable wrapper and supporting code.

Result

No need for Thread anymore.

Motivation

In preparation for adopting FoundationEssentials where available,
we need to avoid using Thread as that isn't available. To that end,
let's bring over NIO's ThreadSpecificVariable wrapper.

Modifications

Bring over NIO's ThreadSpecificVariable wrapper and supporting code.

Result

No need for Thread anymore.
@Lukasa Lukasa requested a review from simonjbeaumont August 29, 2025 13:55
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Aug 29, 2025
Copy link
Contributor

@simonjbeaumont simonjbeaumont left a comment

Choose a reason for hiding this comment

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

LGTM once the CMakeLists are updated and formatting CI appeased.

@Lukasa Lukasa changed the title Adopt NIO's ThreadSpecific logic Move away from Foundation.Thread Sep 8, 2025
@Lukasa Lukasa merged commit c462502 into apple:main Sep 9, 2025
43 checks passed
@Lukasa Lukasa deleted the cb-avoid-thread branch September 9, 2025 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants