Skip to content

Commit 9bb3bb4

Browse files
[wasm] test: fix actor_recursive_deinit.swift for WASI
1 parent 9169d81 commit 9bb3bb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-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?

0 commit comments

Comments
 (0)