Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/wasi-threads/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub fn add_to_linker<T: Clone + Send + 'static>(
) -> anyhow::Result<SharedMemory> {
linker.func_wrap(
"wasi",
"thread_spawn",
"thread-spawn",
move |mut caller: Caller<'_, T>, start_arg: i32| -> i32 {
log::trace!("new thread requested via `wasi::thread_spawn` call");
let host = caller.data().clone();
Expand Down
2 changes: 1 addition & 1 deletion tests/all/cli_tests/threads.wat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
(func $__wasi_fd_write (param i32 i32 i32 i32) (result i32)))
(import "wasi_snapshot_preview1" "proc_exit"
(func $__wasi_proc_exit (param i32)))
(import "wasi" "thread_spawn"
(import "wasi" "thread-spawn"
(func $__wasi_thread_spawn (param i32) (result i32)))

(func (export "_start")
Expand Down