Skip to content

ThreadSafeBox: store Mutex directly in a class#66

Merged
rintaro merged 1 commit into
swiftlang:mainfrom
rintaro:threadsafebox-direct-mutex
Jun 20, 2026
Merged

ThreadSafeBox: store Mutex directly in a class#66
rintaro merged 1 commit into
swiftlang:mainfrom
rintaro:threadsafebox-direct-mutex

Conversation

@rintaro

@rintaro rintaro commented Jun 18, 2026

Copy link
Copy Markdown
Member

Switch from struct wrapping RefBox<Mutex<Value>> to a final class holding Mutex<Value> directly.

Works around rdar://179961254 where a Mutex stored via RefBox<Mutex<...>> is not destroyed.

Switch from `struct` wrapping `RefBox<Mutex<Value>>` to a `final class`
holding `Mutex<Value>` directly. Works around rdar://179961254 where a
Mutex stored via `RefBox<Mutex<...>>` is not destroyed.
@rintaro rintaro merged commit ee71bcf into swiftlang:main Jun 20, 2026
53 checks passed
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

Successfully merging this pull request may close these issues.

3 participants