mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-06 16:14:11 +00:00
check AtomicU64 with target_has_atomic, fixed #924
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
use std::sync::atomic::Ordering;
|
||||
|
||||
#[cfg(not(any(target_arch = "mips", target_arch = "powerpc")))]
|
||||
#[cfg(target_has_atomic = "64")]
|
||||
type FlowCounter = std::sync::atomic::AtomicU64;
|
||||
#[cfg(any(target_arch = "mips", target_arch = "powerpc"))]
|
||||
#[cfg(not(target_has_atomic = "64"))]
|
||||
type FlowCounter = std::sync::atomic::AtomicU32;
|
||||
|
||||
/// Connection flow statistic
|
||||
|
||||
Reference in New Issue
Block a user