File tree 12 files changed +10
-17
lines changed
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! {
29
29
} else if #[ cfg( target_os = "xous" ) ] {
30
30
mod xous;
31
31
pub use xous:: Condvar ;
32
+ } else {
33
+ mod no_threads;
34
+ pub use no_threads:: Condvar ;
32
35
}
33
36
}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -31,5 +31,8 @@ cfg_if::cfg_if! {
31
31
} else if #[ cfg( target_os = "xous" ) ] {
32
32
mod xous;
33
33
pub use xous:: Mutex ;
34
+ } else {
35
+ mod no_threads;
36
+ pub use no_threads:: Mutex ;
34
37
}
35
38
}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -29,5 +29,8 @@ cfg_if::cfg_if! {
29
29
} else if #[ cfg( target_os = "xous" ) ] {
30
30
mod xous;
31
31
pub use xous:: RwLock ;
32
+ } else {
33
+ mod no_threads;
34
+ pub use no_threads:: RwLock ;
32
35
}
33
36
}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ pub mod env;
19
19
pub mod fs;
20
20
#[ path = "../unsupported/io.rs" ]
21
21
pub mod io;
22
- #[ path = "../unsupported/locks/mod.rs" ]
23
- pub mod locks;
24
22
#[ path = "../unsupported/net.rs" ]
25
23
pub mod net;
26
24
#[ 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;
5
5
pub mod env;
6
6
pub mod fs;
7
7
pub mod io;
8
- pub mod locks;
9
8
pub mod net;
10
9
pub mod once;
11
10
pub mod os;
Original file line number Diff line number Diff line change @@ -43,10 +43,7 @@ pub mod thread_local_key;
43
43
pub mod time;
44
44
45
45
cfg_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" ) ) ] {
50
47
#[ path = "../unsupported/once.rs" ]
51
48
pub mod once;
52
49
#[ path = "../unsupported/thread_parking.rs" ]
Original file line number Diff line number Diff line change @@ -48,8 +48,6 @@ cfg_if::cfg_if! {
48
48
#[ path = "atomics/thread.rs" ]
49
49
pub mod thread;
50
50
} else {
51
- #[ path = "../unsupported/locks/mod.rs" ]
52
- pub mod locks;
53
51
#[ path = "../unsupported/once.rs" ]
54
52
pub mod once;
55
53
#[ path = "../unsupported/thread.rs" ]
Original file line number Diff line number Diff line change @@ -33,8 +33,6 @@ pub mod thread_local_key;
33
33
#[ path = "../unsupported/time.rs" ]
34
34
pub mod time;
35
35
36
- #[ path = "../unsupported/locks/mod.rs" ]
37
- pub mod locks;
38
36
#[ path = "../unsupported/thread.rs" ]
39
37
pub mod thread;
40
38
You can’t perform that action at this time.
0 commit comments