net: use atomic-polyfill on tcp client pool, for thumbv6m support.

This commit is contained in:
Dario Nieuwenhuis 2022-12-26 02:42:54 +01:00
parent 72bb9b53a2
commit 5655c6093f
2 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ stable_deref_trait = { version = "1.2.0", default-features = false }
futures = { version = "0.3.17", default-features = false, features = [ "async-await" ] } futures = { version = "0.3.17", default-features = false, features = [ "async-await" ] }
atomic-pool = "1.0" atomic-pool = "1.0"
embedded-nal-async = { version = "0.3.0", optional = true } embedded-nal-async = { version = "0.3.0", optional = true }
atomic-polyfill = { version = "1.0" }
[dependencies.smoltcp] [dependencies.smoltcp]
version = "0.8.0" version = "0.8.0"

View File

@ -329,8 +329,8 @@ pub mod client {
use core::cell::UnsafeCell; use core::cell::UnsafeCell;
use core::mem::MaybeUninit; use core::mem::MaybeUninit;
use core::ptr::NonNull; use core::ptr::NonNull;
use core::sync::atomic::{AtomicBool, Ordering};
use atomic_polyfill::{AtomicBool, Ordering};
use embedded_nal_async::IpAddr; use embedded_nal_async::IpAddr;
use super::*; use super::*;