File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
stdlib/public/Synchronization/Mutex Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,19 @@ extension Atomic where Value == UInt32 {
17
17
// This returns 'false' on success and 'true' on error. Check 'errno' for the
18
18
// specifc error value.
19
19
borrowing func futexLock( ) -> Bool {
20
- _swift_stdlib_futex_lock ( address )
20
+ _swift_stdlib_futex_lock ( . init ( rawAddress ) )
21
21
}
22
22
23
23
// This returns 'false' on success and 'true' on error. Check 'errno' for the
24
24
// specifc error value.
25
25
borrowing func futexTryLock( ) -> Bool {
26
- _swift_stdlib_futex_trylock ( address )
26
+ _swift_stdlib_futex_trylock ( . init ( rawAddress ) )
27
27
}
28
28
29
29
// This returns 'false' on success and 'true' on error. Check 'errno' for the
30
30
// specific error value.
31
31
borrowing func futexUnlock( ) -> Bool {
32
- _swift_stdlib_futex_unlock ( address )
32
+ _swift_stdlib_futex_unlock ( . init ( rawAddress ) )
33
33
}
34
34
}
35
35
@@ -207,7 +207,7 @@ extension _MutexHandle {
207
207
failureOrdering: . relaxed
208
208
) . exchanged {
209
209
// Locked!
210
- return
210
+ return true
211
211
}
212
212
213
213
// The quick atomic op failed, ask the kernel to see if it can acquire the
You can’t perform that action at this time.
0 commit comments