Adding support for threadlocal
variables for Wasm
#15935
Labels
arch-wasm
32-bit and 64-bit WebAssembly
threadlocal
variables for Wasm
#15935
Reasons
With the increased usage of Workers to add multi-threading capabilities to WebAssembly programs, I find myself missing thread local variables on zig Wasm.
Since Wasm is always assumed to be single-threaded,
threadlocal
variables are always treated as container-level variables.Possible solutions
single_threaded
build flag on Wasm targets (perhaps requireshared_memory
to be enabled).single_threaded
mode.The text was updated successfully, but these errors were encountered: