Skip to content

Conversation

eeckstein
Copy link
Contributor

The @exclusivity(unchecked) attribute can be used on variables to selectively disable exclusivity checking.
For completeness, also the @exclusivity(checked) variant is supported: it turns on exclusivity checking for specific variables if exclusivity enforcement is disabled by the command line option.

This new attribute is a missing implementation part of SE-0176 (https://github.com/apple/swift-evolution/blob/main/proposals/0176-enforce-exclusive-access-to-memory.md).

rdar://31121356

@eeckstein eeckstein requested review from rjmccall and atrick January 24, 2022 20:10
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

The `@exclusivity(unchecked)` attribute can be used on variables to selectively disable exclusivity checking.
For completeness, also the `@exclusivity(checked)` variant is supported: it turns on exclusivity checking for specific variables if exclusivity enforcement is disabled by the command line option.

This new attribute is a missing implementation part of SE-0176 (https://github.com/apple/swift-evolution/blob/main/proposals/0176-enforce-exclusive-access-to-memory.md).

rdar://31121356
@eeckstein eeckstein force-pushed the exclusivity-attribute branch from 06c57fc to 5fd941e Compare January 25, 2022 07:08
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

@eeckstein eeckstein merged commit 67c2b75 into swiftlang:main Jan 25, 2022
@eeckstein eeckstein deleted the exclusivity-attribute branch January 25, 2022 10:23
Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

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

@eeckstein Thanks, this is really great!

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