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! {
2626 } else if #[ cfg( target_os = "teeos" ) ] {
2727 mod teeos;
2828 pub use teeos:: Condvar ;
29+ } else if #[ cfg( target_os = "xous" ) ] {
30+ mod xous;
31+ pub use xous:: Condvar ;
2932 }
3033}
Original file line number Diff line number Diff line change 1- use super :: mutex:: Mutex ;
21use crate :: os:: xous:: ffi:: { blocking_scalar, scalar} ;
32use crate :: os:: xous:: services:: { ticktimer_server, TicktimerScalar } ;
3+ use crate :: sys:: locks:: Mutex ;
44use crate :: time:: Duration ;
55use core:: sync:: atomic:: { AtomicUsize , Ordering } ;
66
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ cfg_if::cfg_if! {
2727 pub use sgx:: Mutex ;
2828 } else if #[ cfg( target_os = "solid_asp3" ) ] {
2929 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 ;
3134 }
3235}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -26,5 +26,8 @@ cfg_if::cfg_if! {
2626 } else if #[ cfg( target_os = "teeos" ) ] {
2727 mod teeos;
2828 pub use teeos:: RwLock ;
29+ } else if #[ cfg( target_os = "xous" ) ] {
30+ mod xous;
31+ pub use xous:: RwLock ;
2932 }
3033}
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;
99pub mod fs;
1010#[ path = "../unsupported/io.rs" ]
1111pub mod io;
12- pub mod locks;
1312pub mod net;
1413pub mod os;
1514#[ path = "../unsupported/pipe.rs" ]
You can’t perform that action at this time.
0 commit comments