File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,5 +22,5 @@ async-channel = "1.5.0"
22
22
fastrand = " 1.4.0"
23
23
futures-lite = " 1.11.0"
24
24
25
- [target .'cfg(target_arch = "wasm32")' .dev-dependencies ]
25
+ [target .'cfg(any( target_arch = "wasm32", target_arch = "wasm64") )' .dev-dependencies ]
26
26
wasm-bindgen-test = " 0.3"
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use std::process;
6
6
use std:: sync:: atomic:: { AtomicUsize , Ordering } ;
7
7
use std:: sync:: Arc ;
8
8
9
- #[ cfg( not( target_arch = "wasm32" ) ) ]
9
+ #[ cfg( not( any ( target_arch = "wasm32" , target_arch = "wasm64" ) ) ) ]
10
10
use std:: time:: { Duration , Instant } ;
11
11
12
12
use std:: usize;
@@ -114,7 +114,7 @@ impl<T: ?Sized> Mutex<T> {
114
114
#[ cold]
115
115
async fn acquire_slow ( & self ) {
116
116
// Get the current time.
117
- #[ cfg( not( target_arch = "wasm32" ) ) ]
117
+ #[ cfg( not( any ( target_arch = "wasm32" , target_arch = "wasm64" ) ) ) ]
118
118
let start = Instant :: now ( ) ;
119
119
120
120
loop {
@@ -163,7 +163,7 @@ impl<T: ?Sized> Mutex<T> {
163
163
164
164
// If waiting for too long, fall back to a fairer locking strategy that will prevent
165
165
// newer lock operations from starving us forever.
166
- #[ cfg( not( target_arch = "wasm32" ) ) ]
166
+ #[ cfg( not( any ( target_arch = "wasm32" , target_arch = "wasm64" ) ) ) ]
167
167
if start. elapsed ( ) > Duration :: from_micros ( 500 ) {
168
168
break ;
169
169
}
You can’t perform that action at this time.
0 commit comments