diff options
| author | Sean Cross <sean@xobs.io> | 2023-12-24 15:09:52 +0800 |
|---|---|---|
| committer | Sean Cross <sean@xobs.io> | 2024-01-13 09:13:56 -0800 |
| commit | 762e58a218906e2ba403bcc9916b4f4378a6c1de (patch) | |
| tree | aeb5e32c0d64d8ad0682352f10633b769ee0f852 /library/std | |
| parent | eabd445053ddf9217ab9b464b5ec239fcaf416d3 (diff) | |
| download | rust-762e58a218906e2ba403bcc9916b4f4378a6c1de.tar.gz rust-762e58a218906e2ba403bcc9916b4f4378a6c1de.zip | |
std: once: use queue implementation on Xous
Use the global queue implementation of Once when running on Xous. This gets us a thread-safe implementation, rather than using the non-threadsafe `unsupported` implementation. Signed-off-by: Sean Cross <sean@xobs.io>
Diffstat (limited to 'library/std')
| -rw-r--r-- | library/std/src/sys/pal/xous/mod.rs | 2 | ||||
| -rw-r--r-- | library/std/src/sys_common/once/mod.rs | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/library/std/src/sys/pal/xous/mod.rs b/library/std/src/sys/pal/xous/mod.rs index c2550dcfd83..aa96925d859 100644 --- a/library/std/src/sys/pal/xous/mod.rs +++ b/library/std/src/sys/pal/xous/mod.rs @@ -14,8 +14,6 @@ pub mod io; pub mod locks; #[path = "../unsupported/net.rs"] pub mod net; -#[path = "../unsupported/once.rs"] -pub mod once; pub mod os; #[path = "../unix/os_str.rs"] pub mod os_str; diff --git a/library/std/src/sys_common/once/mod.rs b/library/std/src/sys_common/once/mod.rs index 359697d8313..ec57568c54c 100644 --- a/library/std/src/sys_common/once/mod.rs +++ b/library/std/src/sys_common/once/mod.rs @@ -25,6 +25,7 @@ cfg_if::cfg_if! { target_family = "unix", all(target_vendor = "fortanix", target_env = "sgx"), target_os = "solid_asp3", + target_os = "xous", ))] { mod queue; pub use queue::{Once, OnceState}; |
