File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
stdlib/public/Synchronization Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ import Builtin
14
14
15
15
/// An atomic value.
16
16
@available ( SwiftStdlib 5 . 11 , * )
17
- @_rawLayout ( like: Value . AtomicRepresentation)
18
17
@frozen
18
+ @_rawLayout ( like: Value . AtomicRepresentation)
19
+ @_staticExclusiveOnly
19
20
public struct Atomic < Value: AtomicValue > : ~ Copyable {
20
21
@available ( SwiftStdlib 5 . 11 , * )
21
22
@_alwaysEmitIntoClient
Original file line number Diff line number Diff line change 16
16
/// times.
17
17
@available ( SwiftStdlib 5 . 11 , * )
18
18
@frozen
19
+ @_staticExclusiveOnly
19
20
public struct AtomicLazyReference < Instance: AnyObject > : ~ Copyable {
20
21
@usableFromInline
21
22
let storage : Atomic < Unmanaged < Instance > ? >
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ add_swift_target_library(swiftSynchronization ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES
30
30
${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
31
31
"-enable-builtin-module"
32
32
"-enable-experimental-feature" "RawLayout"
33
+ "-enable-experimental-feature" "StaticExclusiveOnly"
33
34
34
35
INSTALL_IN_COMPONENT
35
36
stdlib
You can’t perform that action at this time.
0 commit comments