Skip to content

Commit 63c7636

Browse files
committed
actually make Pool Sync on x86
the `#[cfg(any(.., test)]` was misleading
1 parent 6f9c883 commit 63c7636

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/pool/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,10 @@ pub struct Pool<T> {
267267
armv7r,
268268
armv7m,
269269
armv8m_main,
270-
all(target_arch = "x86_64", feature = "x86-sync-pool"),
270+
all(
271+
any(target_arch = "x86_64", target_arch = "x86"),
272+
feature = "x86-sync-pool"
273+
),
271274
test
272275
))]
273276
unsafe impl<T> Sync for Pool<T> {}

src/pool/singleton.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ use super::{Init, Node, Uninit};
1919
armv7r,
2020
armv7m,
2121
armv8m_main,
22-
all(target_arch = "x86_64", feature = "x86-sync-pool"),
22+
all(
23+
any(target_arch = "x86_64", target_arch = "x86"),
24+
feature = "x86-sync-pool"
25+
),
2326
test
2427
))]
2528
#[macro_export]

0 commit comments

Comments
 (0)