-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
Starting with rayon 1.8.1 / rayon-core 1.12.1, Rayon has a web_spin_lock feature powered by wasm-sync that allows blocking on the main thread via spinning - same workaround for forbidden `atomics.wait` as used in e.g. Emscripten. rayon-rs/rayon#1110 We can leverage it and simplify instructions, tests and the demo to avoid an extra worker.
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,14 @@ readme = "README.md" | |
exclude = [".github"] | ||
repository = "https://github.com/RReverser/wasm-bindgen-rayon" | ||
|
||
[dependencies] | ||
[workspace.dependencies] | ||
wasm-bindgen = "0.2.84" | ||
rayon-core = "1.12" | ||
spmc = "0.3.0" | ||
rayon = "1.8.1" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
RReverser
Author
Owner
|
||
|
||
[dependencies] | ||
wasm-bindgen = { workspace = true } | ||
rayon-core = { version = "1.12.1", features = ["web_spin_lock"] } | ||
crossbeam-channel = "0.5.9" | ||
js-sys = "0.3.48" | ||
|
||
[workspace] | ||
|
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Don't you want
web_spin_lock
here too?(
rayon/web_spin_lock
enablesrayon-core/web_spin_lock
, but not the reverse.)