File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
stdlib/public/Synchronization Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ set(SWIFT_SYNCHRNOIZATION_SWIFT_FLAGS
75
75
"-enable-builtin-module"
76
76
"-enable-experimental-feature" "RawLayout"
77
77
"-enable-experimental-feature" "StaticExclusiveOnly"
78
+ "-enable-experimental-feature" "TransferringArgsAndResults"
78
79
)
79
80
80
81
add_swift_target_library (swiftSynchronization ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public struct Mutex<Value: ~Copyable>: ~Copyable {
47
47
@available ( SwiftStdlib 6 . 0 , * )
48
48
@_alwaysEmitIntoClient
49
49
@_transparent
50
- public init ( _ initialValue: consuming Value ) {
50
+ public init ( _ initialValue: transferring consuming Value ) {
51
51
value = _Cell ( initialValue)
52
52
}
53
53
}
@@ -120,7 +120,7 @@ extension Mutex where Value: ~Copyable {
120
120
/// }
121
121
/// return try body(&value)
122
122
///
123
- /// - Note: This version of `withLock ` is unchecked because it does
123
+ /// - Note: This version of `tryWithLock ` is unchecked because it does
124
124
/// not enforce any sendability guarantees.
125
125
///
126
126
/// - Warning: Recursive calls to `tryWithLockUnchecked` within the
You can’t perform that action at this time.
0 commit comments