-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SE-0258: property wrappers, revise the Atomic example.
Use 'class' rather than 'struct' because there is no way to make a struct property atomic from within the wrapper. TSAN will correctly report an error if you use a struct Atomic wrapper. Some developers have been baffled by the TSAN failure, which actually correctly identifies the bug. Fixes rdar://79173755 (TSAN violation on standard Atomic property wrappers)
- Loading branch information
Showing
1 changed file
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters