std: move locks to sys on xous

This commit is contained in:
joboet 2024-02-15 17:52:24 +01:00
parent 6ee45102fe
commit f77c4d57fc
No known key found for this signature in database
GPG Key ID: 704E0149B0194B3C
8 changed files with 11 additions and 10 deletions

View File

@ -26,5 +26,8 @@ cfg_if::cfg_if! {
} else if #[cfg(target_os = "teeos")] {
mod teeos;
pub use teeos::Condvar;
} else if #[cfg(target_os = "xous")] {
mod xous;
pub use xous::Condvar;
}
}

View File

@ -1,6 +1,6 @@
use super::mutex::Mutex;
use crate::os::xous::ffi::{blocking_scalar, scalar};
use crate::os::xous::services::{ticktimer_server, TicktimerScalar};
use crate::sys::locks::Mutex;
use crate::time::Duration;
use core::sync::atomic::{AtomicUsize, Ordering};

View File

@ -27,6 +27,9 @@ cfg_if::cfg_if! {
pub use sgx::Mutex;
} else if #[cfg(target_os = "solid_asp3")] {
mod itron;
pub use itron::Condvar;
pub use itron::Mutex;
} else if #[cfg(target_os = "xous")] {
mod xous;
pub use xous::Mutex;
}
}

View File

@ -26,5 +26,8 @@ cfg_if::cfg_if! {
} else if #[cfg(target_os = "teeos")] {
mod teeos;
pub use teeos::RwLock;
} else if #[cfg(target_os = "xous")] {
mod xous;
pub use xous::RwLock;
}
}

View File

@ -1,7 +0,0 @@
mod condvar;
mod mutex;
mod rwlock;
pub use condvar::*;
pub use mutex::*;
pub use rwlock::*;

View File

@ -9,7 +9,6 @@ pub mod env;
pub mod fs;
#[path = "../unsupported/io.rs"]
pub mod io;
pub mod locks;
pub mod net;
pub mod os;
#[path = "../unsupported/pipe.rs"]