Lines Matching refs:thread
4 ;; Test that a thread which is not suspended cannot be resumed
11 (import "" "thread.new-indirect" (func $thread.new-indirect (param i32 i32) (result i32)))
12 … (import "" "thread.yield-to-suspended" (func $thread.yield-to-suspended (param i32) (result i32)))
13 (import "" "thread.yield" (func $thread.yield (result i32)))
20 (local.set $id (call $thread.new-indirect (i32.const 0) (i32.const 0)))
22 ;; Resume it, which will come back here due to `$thread.yield`
23 (drop (call $thread.yield-to-suspended (local.get $id)))
26 (drop (call $thread.yield-to-suspended (local.get $id)))
30 (drop (call $thread.yield))
39 (core func $thread-new-indirect
40 (canon thread.new-indirect $start-func-ty (table $libc "table")))
41 (core func $thread-yield (canon thread.yield))
42 (core func $thread-yield-to-suspended (canon thread.yield-to-suspended))
46 (export "thread.new-indirect" (func $thread-new-indirect))
47 (export "thread.yield-to-suspended" (func $thread-yield-to-suspended))
48 (export "thread.yield" (func $thread-yield))
56 (assert_trap (invoke "run") "cannot resume thread which is not suspended")