File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
stdlib/public/Synchronization Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,11 @@ internal struct _Cell<Value: ~Copyable>: ~Copyable {
28
28
@_alwaysEmitIntoClient
29
29
@_transparent
30
30
var rawAddress : Builtin . RawPointer {
31
- Builtin . unprotectedAddressOfBorrow ( self )
31
+ #if $BuiltinAddressOfRawLayout
32
+ Builtin . addressOfRawLayout ( self )
33
+ #else
34
+ fatalError ( )
35
+ #endif
32
36
}
33
37
34
38
@available ( SwiftStdlib 6 . 0 , * )
Original file line number Diff line number Diff line change 36
36
@_staticExclusiveOnly
37
37
public struct Mutex < Value: ~ Copyable> : ~ Copyable {
38
38
@usableFromInline
39
- let value : _Cell < Value >
39
+ let handle = _MutexHandle ( )
40
40
41
41
@usableFromInline
42
- let handle = _MutexHandle ( )
42
+ let value : _Cell < Value >
43
43
44
44
/// Initializes a value of this mutex with the given initial state.
45
45
///
You can’t perform that action at this time.
0 commit comments