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 {
1717 // This returns 'false' on success and 'true' on error. Check 'errno' for the
1818 // specifc error value.
1919 borrowing func futexLock( ) -> Bool {
20- _swift_stdlib_futex_lock ( address )
20+ _swift_stdlib_futex_lock ( . init ( rawAddress ) )
2121 }
2222
2323 // This returns 'false' on success and 'true' on error. Check 'errno' for the
2424 // specifc error value.
2525 borrowing func futexTryLock( ) -> Bool {
26- _swift_stdlib_futex_trylock ( address )
26+ _swift_stdlib_futex_trylock ( . init ( rawAddress ) )
2727 }
2828
2929 // This returns 'false' on success and 'true' on error. Check 'errno' for the
3030 // specific error value.
3131 borrowing func futexUnlock( ) -> Bool {
32- _swift_stdlib_futex_unlock ( address )
32+ _swift_stdlib_futex_unlock ( . init ( rawAddress ) )
3333 }
3434}
3535
@@ -207,7 +207,7 @@ extension _MutexHandle {
207207 failureOrdering: . relaxed
208208 ) . exchanged {
209209 // Locked!
210- return
210+ return true
211211 }
212212
213213 // 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