Skip to content

Commit a68a1bb

Browse files
committed
std: support RwLock and thread parking on TEEOS
1 parent 99763e3 commit a68a1bb

File tree

3 files changed

+5
-55
lines changed

3 files changed

+5
-55
lines changed

std/src/sys/sync/rwlock/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ cfg_select! {
1919
all(target_os = "windows", target_vendor = "win7"),
2020
all(target_vendor = "fortanix", target_env = "sgx"),
2121
target_os = "xous",
22+
target_os = "teeos",
2223
) => {
2324
mod queue;
2425
pub use queue::RwLock;
@@ -27,10 +28,6 @@ cfg_select! {
2728
mod solid;
2829
pub use solid::RwLock;
2930
}
30-
target_os = "teeos" => {
31-
mod teeos;
32-
pub use teeos::RwLock;
33-
}
3431
_ => {
3532
mod no_threads;
3633
pub use no_threads::RwLock;

std/src/sys/sync/rwlock/teeos.rs

Lines changed: 0 additions & 50 deletions
This file was deleted.

std/src/sys/sync/thread_parking/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ cfg_select! {
3535
mod xous;
3636
pub use xous::Parker;
3737
}
38-
target_family = "unix" => {
38+
any(
39+
target_family = "unix",
40+
target_os = "teeos",
41+
) => {
3942
mod pthread;
4043
pub use pthread::Parker;
4144
}

0 commit comments

Comments
 (0)