Skip to content

Commit 3a125a2

Browse files
Merge pull request #76847 from kateinoigakukun/yt/fix-actor_recursive_deinit
2 parents d8cbdc3 + 6c97636 commit 3a125a2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

test/Concurrency/Runtime/actor_recursive_deinit.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ import WinSDK
2828
typealias ThreadID = UInt32
2929
func getCurrentThreadID() -> ThreadID { GetCurrentThreadId() }
3030
func equalThreadIDs(_ a: ThreadID, _ b: ThreadID) -> Bool { a == b }
31+
#elseif os(WASI)
32+
typealias ThreadID = UInt32
33+
func getCurrentThreadID() -> ThreadID { 0 }
34+
func equalThreadIDs(_ a: ThreadID, _ b: ThreadID) -> Bool { a == b }
3135
#endif
3236

3337
var mainThread: ThreadID?

test/Concurrency/Runtime/isolated_deinit_main_sync.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
// RUN: %target-run-simple-swift(-enable-experimental-feature IsolatedDeinit -Xfrontend -disable-availability-checking) | %FileCheck %s
22

3+
// REQUIRES: executable_test
4+
// REQUIRES: concurrency
5+
// REQUIRES: concurrency_runtime
6+
37
var isDead: Bool = false
48

59
public class Foo {

0 commit comments

Comments
 (0)