Skip to content

[Threading] Fix C11 once implementation to not rely on lock recursion. #70761

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

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

al45tair
Copy link
Contributor

@al45tair al45tair commented Jan 8, 2024

The implementation mistakenly locked and unlocked the mutex in helper.once_wait(), which is only ever called from inside a region where the mutex is already locked.

rdar://119739594

The implementation mistakenly locked and unlocked the mutex in
`helper.once_wait()`, which is only ever called from inside a region
where the mutex is already locked.

rdar://119739594
@al45tair al45tair requested a review from mikeash January 8, 2024 09:37
@al45tair
Copy link
Contributor Author

al45tair commented Jan 8, 2024

@swift-ci Please smoke test

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.

2 participants