mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
metrics: fix build on mips (#4475)
This commit is contained in:
parent
fc4deaa1d0
commit
5690f0c32e
@ -177,9 +177,9 @@ macro_rules! cfg_macros {
|
|||||||
macro_rules! cfg_metrics {
|
macro_rules! cfg_metrics {
|
||||||
($($item:item)*) => {
|
($($item:item)*) => {
|
||||||
$(
|
$(
|
||||||
// For now, metrics is always enabled. When stabilized, it might
|
// For now, metrics is only disabled in loom tests.
|
||||||
// have a dedicated feature flag.
|
// When stabilized, it might have a dedicated feature flag.
|
||||||
#[cfg(tokio_unstable)]
|
#[cfg(all(tokio_unstable, not(loom)))]
|
||||||
#[cfg_attr(docsrs, doc(cfg(tokio_unstable)))]
|
#[cfg_attr(docsrs, doc(cfg(tokio_unstable)))]
|
||||||
$item
|
$item
|
||||||
)*
|
)*
|
||||||
@ -189,7 +189,7 @@ macro_rules! cfg_metrics {
|
|||||||
macro_rules! cfg_not_metrics {
|
macro_rules! cfg_not_metrics {
|
||||||
($($item:item)*) => {
|
($($item:item)*) => {
|
||||||
$(
|
$(
|
||||||
#[cfg(not(tokio_unstable))]
|
#[cfg(not(all(tokio_unstable, not(loom))))]
|
||||||
$item
|
$item
|
||||||
)*
|
)*
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use std::sync::atomic::Ordering::Relaxed;
|
use crate::loom::sync::atomic::Ordering::Relaxed;
|
||||||
use std::sync::atomic::{AtomicU64, AtomicUsize};
|
use crate::loom::sync::atomic::{AtomicU64, AtomicUsize};
|
||||||
|
|
||||||
/// Retreive runtime worker metrics.
|
/// Retreive runtime worker metrics.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user