File tree Expand file tree Collapse file tree 8 files changed +11
-10
lines changed Expand file tree Collapse file tree 8 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -26,5 +26,8 @@ cfg_if::cfg_if! {
26
26
} else if #[ cfg( target_os = "teeos" ) ] {
27
27
mod teeos;
28
28
pub use teeos:: Condvar ;
29
+ } else if #[ cfg( target_os = "xous" ) ] {
30
+ mod xous;
31
+ pub use xous:: Condvar ;
29
32
}
30
33
}
Original file line number Diff line number Diff line change 1
- use super :: mutex:: Mutex ;
2
1
use crate :: os:: xous:: ffi:: { blocking_scalar, scalar} ;
3
2
use crate :: os:: xous:: services:: { ticktimer_server, TicktimerScalar } ;
3
+ use crate :: sys:: locks:: Mutex ;
4
4
use crate :: time:: Duration ;
5
5
use core:: sync:: atomic:: { AtomicUsize , Ordering } ;
6
6
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ cfg_if::cfg_if! {
27
27
pub use sgx:: Mutex ;
28
28
} else if #[ cfg( target_os = "solid_asp3" ) ] {
29
29
mod itron;
30
- pub use itron:: Condvar ;
30
+ pub use itron:: Mutex ;
31
+ } else if #[ cfg( target_os = "xous" ) ] {
32
+ mod xous;
33
+ pub use xous:: Mutex ;
31
34
}
32
35
}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -26,5 +26,8 @@ cfg_if::cfg_if! {
26
26
} else if #[ cfg( target_os = "teeos" ) ] {
27
27
mod teeos;
28
28
pub use teeos:: RwLock ;
29
+ } else if #[ cfg( target_os = "xous" ) ] {
30
+ mod xous;
31
+ pub use xous:: RwLock ;
29
32
}
30
33
}
File renamed without changes.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ pub mod env;
9
9
pub mod fs;
10
10
#[ path = "../unsupported/io.rs" ]
11
11
pub mod io;
12
- pub mod locks;
13
12
pub mod net;
14
13
pub mod os;
15
14
#[ path = "../unsupported/pipe.rs" ]
You can’t perform that action at this time.
0 commit comments