-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
timer: use our own AtomicU64 on targets with target_has_atomic less than 64 #1538
Conversation
It would be nice if this was handled in the std crate. Is there a reason it’s not tackled there? |
This is difficult because |
Oh right, makes sense then.. |
tokio-timer/src/atomic.rs
Outdated
|
||
pub(crate) use self::imp::AtomicU64; | ||
|
||
#[cfg(target_pointer_width = "64")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be #[cfg(target_has_atomic = "64")]
, not #[cfg(target_pointer_width = "64")]
, but since feature(cfg_target_has_atomic)
is not stable, will use an alternative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 3e86b76
displayName: Check source | ||
|
||
- script: cargo check --tests --all --exclude tokio-tls --target ${{ parameters.target }} | ||
displayName: Check tests | ||
# - script: cross check --tests --all --exclude tokio-tls --target $(target) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This cannot be enabled because at least one dev-dependency does not support architectures other than x86_64
.
@@ -1,27 +1,41 @@ | |||
jobs: | |||
- job: ${{ parameters.name }} | |||
displayName: ${{ parameters.displayName }} | |||
strategy: | |||
matrix: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This matrix is roughly the same as what we use in bytes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
Motivation
Fixes #1421 (comment)
Solution
Reverts part of #1421.