Replies: 1 comment
-
Found this example but it seems it's also calling roughly the same non thread safe function https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/samples/terminate/src/main.c#L177 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I call
wasm_runtime_set_exception
to stop the vm but I call it from a thread different to the vm thread. With thread sanitiser I detected bunch of data races betweenwasm_func_call
andwasm_runtime_set_exception
So I'm looking for a recommendation on how to to shutdown WASM VM from a separate thread?
Beta Was this translation helpful? Give feedback.
All reactions