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
Support Linux on MIPS and ARMv5TE #39
Merged
Merged
Commits on Sep 9, 2021
-
Support Linux on MIPS and ARMv5TE
These platforms does not provide `std::sync::atomic::AtomicU64`. - Add a cargo feature "quanta" and make it a default feature. - Add a module `common::time` and conditionally choose the source file from "time_quanta.rs" or "time_compat.rs". - time_quanta.rs file has type aliases to `quanta::{Instant, Clock, Mock}`. It also has `AtomicInstant` holding an `AtomicU64`. - time_compat.rs file has `Instant` based on `std::time::Instant` and quanta-like `Clock` and `Mock`. It also has `AtomicInstant` holding a `RwLock<Option<Instant>>`. - Update Cache, etc. modules to use `common::time` instead of `quanta`. - Add a step to GitHub Actions to test future feature without quanta/ `AtomicU64`.
Configuration menu - View commit details
-
Copy full SHA for 892b694 - Browse repository at this point
Copy the full SHA 892b694View commit details -
Configuration menu - View commit details
-
Copy full SHA for df2eb3f - Browse repository at this point
Copy the full SHA df2eb3fView commit details
Commits on Sep 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for b05f62c - Browse repository at this point
Copy the full SHA b05f62cView commit details -
Support Linux on MIPS and ARMv5TE
Remove target_arch = "mips" from the cfg_attr for the time module. (It will not work when quanta feature is still enabled it Cargo.toml)
Configuration menu - View commit details
-
Copy full SHA for e93fc1e - Browse repository at this point
Copy the full SHA e93fc1eView commit details -
Support Linux on MIPS and ARMv5TE
Add a section to the README to explain that `default-features = false` will be needed on these platforms.
Configuration menu - View commit details
-
Copy full SHA for 2ef09a7 - Browse repository at this point
Copy the full SHA 2ef09a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4407e87 - Browse repository at this point
Copy the full SHA 4407e87View commit details -
Support Linux on MIPS and ARMv5TE
- Rename the Cargo feature "quanta" to "atomic64". - Update the change log and readme. - Update a comment in the yml for GitHub Actions.
Configuration menu - View commit details
-
Copy full SHA for 515c8b6 - Browse repository at this point
Copy the full SHA 515c8b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d91c5ce - Browse repository at this point
Copy the full SHA d91c5ceView commit details -
Support Linux on MIPS and ARMv5TE
Ensure to set num threads to 1 for thread pools when `num_cpus::get()` returns 0.
Configuration menu - View commit details
-
Copy full SHA for 13263a2 - Browse repository at this point
Copy the full SHA 13263a2View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.