fix build for ARMv6-M

This commit is contained in:
Jorge Aparicio 2021-09-10 13:16:43 +02:00
parent a4f33b4768
commit adee3a067d

View File

@ -54,9 +54,15 @@ use core::{
marker::PhantomData,
ops::Deref,
ptr,
sync::atomic::{self, AtomicUsize, Ordering},
sync::atomic,
};
#[cfg(armv6m)]
use atomic_polyfill::{AtomicUsize, Ordering};
#[cfg(not(armv6m))]
use core::sync::atomic::{AtomicUsize, Ordering};
use crate::pool::{self, stack::Ptr, Node};
/// Instantiates a pool of Arc pointers as a global singleton