File tree Expand file tree Collapse file tree 12 files changed +10
-17
lines changed Expand file tree Collapse file tree 12 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -29,5 +29,8 @@ cfg_if::cfg_if! {
2929 } else if #[ cfg( target_os = "xous" ) ] {
3030 mod xous;
3131 pub use xous:: Condvar ;
32+ } else {
33+ mod no_threads;
34+ pub use no_threads:: Condvar ;
3235 }
3336}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -31,5 +31,8 @@ cfg_if::cfg_if! {
3131 } else if #[ cfg( target_os = "xous" ) ] {
3232 mod xous;
3333 pub use xous:: Mutex ;
34+ } else {
35+ mod no_threads;
36+ pub use no_threads:: Mutex ;
3437 }
3538}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -29,5 +29,8 @@ cfg_if::cfg_if! {
2929 } else if #[ cfg( target_os = "xous" ) ] {
3030 mod xous;
3131 pub use xous:: RwLock ;
32+ } else {
33+ mod no_threads;
34+ pub use no_threads:: RwLock ;
3235 }
3336}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ pub mod env;
1919pub mod fs;
2020#[ path = "../unsupported/io.rs" ]
2121pub mod io;
22- #[ path = "../unsupported/locks/mod.rs" ]
23- pub mod locks;
2422#[ path = "../unsupported/net.rs" ]
2523pub mod net;
2624#[ path = "../unsupported/once.rs" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ pub mod args;
55pub mod env;
66pub mod fs;
77pub mod io;
8- pub mod locks;
98pub mod net;
109pub mod once;
1110pub mod os;
Original file line number Diff line number Diff line change @@ -43,10 +43,7 @@ pub mod thread_local_key;
4343pub mod time;
4444
4545cfg_if:: cfg_if! {
46- if #[ cfg( target_feature = "atomics" ) ] {
47- } else {
48- #[ path = "../unsupported/locks/mod.rs" ]
49- pub mod locks;
46+ if #[ cfg( not( target_feature = "atomics" ) ) ] {
5047 #[ path = "../unsupported/once.rs" ]
5148 pub mod once;
5249 #[ path = "../unsupported/thread_parking.rs" ]
You can’t perform that action at this time.
0 commit comments