bnjbvr opened PR #2822 from store_notify_thread_switch
to main
:
While potentially unsafe, https://docs.wasmtime.dev/examples-rust-multithreading.html#multithreading-without-send suggests that we can move over a Store and all that's attached to it to other threads. To make this a reality, a new API is required to notify the store that it's been moved over, so that it can initialize trap handling on this particular thread. I've made it an unsafe function, this should catch the eye of the users that they wouldn't need to use it in general. Also added a test that crashed before on a Mac.
bnjbvr requested alexcrichton for a review on PR #2822.
bnjbvr updated PR #2822 from store_notify_thread_switch
to main
.
bnjbvr updated PR #2822 from store_notify_thread_switch
to main
.
alexcrichton submitted PR Review.
alexcrichton merged PR #2822.
Last updated: Dec 23 2024 at 12:05 UTC