Back to Wasmtime

Multithreaded Embedding

docs/examples-multithreaded-embedding.md

44.0.1723 B
Original Source

Multithreaded Embedding

You can also browse this source code online and clone the wasmtime repository to run the example locally:

This example demonstrates using Wasmtime in multithreaded runtimes.

Wasm Source

wat
{{#include ../examples/threads.wat}}

Host Source

<!-- langtabs-start -->
rust
{{#include ../examples/threads.rs}}
c
{{#include ../examples/threads.c}}
cpp
{{#include ../examples/threads.cc}}
<!-- langtabs-end -->