Skip to content

Commit 5e7d10e

Browse files
_runtime(_multithreaded) is not available in 6.0
1 parent 0176045 commit 5e7d10e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schemes/release-6.0/swift/0005-Synchronization-Skip-atomic-operations-in-single-thr.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ index d2729f4d54c..6c58628c40e 100644
1919

2020
extension Atomic where Value == _MutexHandle.State {
2121
internal borrowing func _wait(expected: _MutexHandle.State) {
22-
+ #if _runtime(_multithreaded)
22+
+ #if false
2323
_ = _swift_stdlib_wait(
2424
on: .init(_rawAddress),
2525
expected: expected.rawValue,
@@ -31,7 +31,7 @@ index d2729f4d54c..6c58628c40e 100644
3131
}
3232

3333
internal borrowing func _wake() {
34-
+ #if _runtime(_multithreaded)
34+
+ #if false
3535
// Only wake up 1 thread
3636
_ = _swift_stdlib_wake(on: .init(_rawAddress), count: 1)
3737
+ #endif

0 commit comments

Comments
 (0)