Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable eventual fairness on wasm32-unknown-unknown #302

Merged
merged 2 commits into from Nov 1, 2021

Conversation

Amanieu
Copy link
Owner

@Amanieu Amanieu commented Oct 31, 2021

std::time::Instant panics on this target and the external instant crate
adds undesirable external dependencies to the wasm module.

Fixes #269

core/src/parking_lot.rs Outdated Show resolved Hide resolved
std::time::Instant panics on this target and the external instant crate
adds undesirable external dependencies to the wasm module.
@Amanieu Amanieu merged commit 1cf1274 into master Nov 1, 2021
@Amanieu Amanieu deleted the wasm-fair-timeout branch November 1, 2021 00:07
@d3lm
Copy link
Contributor

d3lm commented Nov 2, 2021

FWIW, I think it only adds undesirable external dependencies if your host is not a browser. If you target the browser you can configure it and enable features and it compiles just fine.

But it's a good idea to just remove this for wasm32 all together if it's not strictly needed.

facebook-github-bot pushed a commit to facebookexperimental/reverie that referenced this pull request Feb 7, 2022
Summary:
~~~Added new parking-lot version named parking_lot_0_12~~~
allow-large-files

previous versions of parking-lot are incompatible with wasm compilation targets

rustwasm/wasm-bindgen#2160
Amanieu/parking_lot#302

Reviewed By: dtolnay

Differential Revision: D33985872

fbshipit-source-id: ce571ef50289fe97ff89dbf72d2c7f39fbd47758
facebook-github-bot pushed a commit to facebookexperimental/rust-shed that referenced this pull request Feb 7, 2022
Summary:
~~~Added new parking-lot version named parking_lot_0_12~~~
allow-large-files

previous versions of parking-lot are incompatible with wasm compilation targets

rustwasm/wasm-bindgen#2160
Amanieu/parking_lot#302

Reviewed By: dtolnay

Differential Revision: D33985872

fbshipit-source-id: ce571ef50289fe97ff89dbf72d2c7f39fbd47758
facebook-github-bot pushed a commit to facebook/sapling that referenced this pull request Feb 7, 2022
Summary:
~~~Added new parking-lot version named parking_lot_0_12~~~
allow-large-files

previous versions of parking-lot are incompatible with wasm compilation targets

rustwasm/wasm-bindgen#2160
Amanieu/parking_lot#302

Reviewed By: dtolnay

Differential Revision: D33985872

fbshipit-source-id: ce571ef50289fe97ff89dbf72d2c7f39fbd47758
facebook-github-bot pushed a commit to facebook/hhvm that referenced this pull request Feb 7, 2022
Summary:
~~~Added new parking-lot version named parking_lot_0_12~~~
allow-large-files

previous versions of parking-lot are incompatible with wasm compilation targets

rustwasm/wasm-bindgen#2160
Amanieu/parking_lot#302

Reviewed By: dtolnay

Differential Revision: D33985872

fbshipit-source-id: ce571ef50289fe97ff89dbf72d2c7f39fbd47758
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

parking_lot_core 0.8.1 wasm link issue
3 participants