mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
std: move locks to sys
on xous
This commit is contained in:
parent
6ee45102fe
commit
f77c4d57fc
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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};
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +0,0 @@
|
||||
mod condvar;
|
||||
mod mutex;
|
||||
mod rwlock;
|
||||
|
||||
pub use condvar::*;
|
||||
pub use mutex::*;
|
||||
pub use rwlock::*;
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user