bytebox icon indicating copy to clipboard operation
bytebox copied to clipboard

WASI: thread safety

Open rdunnington opened this issue 2 years ago • 0 comments

The current implementation of the wasi functions are not threadsafe, as wasi file descriptors are backed by an internal data structure that isn't threadsafe, nor wrapped by any locks. This is fine for simple programs, but more complex programs that embed bytebox may invoke wasm functions from different threads. Ideally the solution will also allow compiling thread safety out if it isn't needed to avoid the overhead in single-threaded environments.

rdunnington avatar May 04 '23 03:05 rdunnington