@@ -6,9 +6,9 @@ use super::counter::{self, Counter};
66use super :: histogram:: Histogram ;
77use owning_ref:: OwningRef ;
88use std:: collections:: HashMap ;
9- #[ cfg( any( target_arch = "mips" , target_arch = "powerpc" ) ) ]
9+ #[ cfg( any( target_arch = "mips" , target_arch = "powerpc" , target_arch= "xtensa" ) ) ]
1010use std:: sync:: atomic:: AtomicU32 ;
11- #[ cfg( not( any( target_arch = "mips" , target_arch = "powerpc" ) ) ) ]
11+ #[ cfg( not( any( target_arch = "mips" , target_arch = "powerpc" , target_arch= "xtensa" ) ) ) ]
1212use std:: sync:: atomic:: AtomicU64 ;
1313use std:: sync:: { Arc , RwLock , RwLockReadGuard } ;
1414
@@ -29,12 +29,12 @@ pub struct Exemplar<S, V> {
2929/// counter_with_exemplar.inc_by(1, Some(vec![("user_id".to_string(), "42".to_string())]));
3030/// let _value: (u64, _) = counter_with_exemplar.get();
3131/// ```
32- #[ cfg( not( any( target_arch = "mips" , target_arch = "powerpc" ) ) ) ]
32+ #[ cfg( not( any( target_arch = "mips" , target_arch = "powerpc" , target_arch= "xtensa" ) ) ) ]
3333pub struct CounterWithExemplar < S , N = u64 , A = AtomicU64 > {
3434 pub ( crate ) inner : Arc < RwLock < CounterWithExemplarInner < S , N , A > > > ,
3535}
3636
37- #[ cfg( any( target_arch = "mips" , target_arch = "powerpc" ) ) ]
37+ #[ cfg( any( target_arch = "mips" , target_arch = "powerpc" , target_arch= "xtensa" ) ) ]
3838pub struct CounterWithExemplar < S , N = u32 , A = AtomicU32 > {
3939 pub ( crate ) inner : Arc < RwLock < CounterWithExemplarInner < S , N , A > > > ,
4040}
0 commit comments