We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 004c923 commit ba2af19Copy full SHA for ba2af19
tests/all/cli_tests/threads.wat
@@ -18,9 +18,10 @@
18
(drop (call $__wasi_thread_spawn (i32.const 0)))
19
20
21
- ;; Wasmtime has no `wait/notify` yet, so we just spin to allow the threads
22
- ;; to do their work.
23
- (local.set $i (i32.const 2000000))
+ ;; Spin to allow the threads to do their work. TODO: replace this with
+ ;; a loop over `wait` with `notify` instructions in the
+ ;; `wasi_thread_start` entry point.
24
+ (local.set $i (i32.const 4000000))
25
(loop $again
26
(local.set $i (i32.sub (local.get $i) (i32.const 1)))
27
(br_if $again (i32.gt_s (local.get $i) (i32.const 0)))
0 commit comments