Skip to content

Commit f826770

Browse files
committed
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 <[email protected]>
1 parent 9a93530 commit f826770

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

library/std/src/sys/xous/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ pub mod io;
1414
pub mod locks;
1515
#[path = "../unsupported/net.rs"]
1616
pub mod net;
17-
#[path = "../unsupported/once.rs"]
18-
pub mod once;
1917
pub mod os;
2018
#[path = "../unix/os_str.rs"]
2119
pub mod os_str;

library/std/src/sys_common/once/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ cfg_if::cfg_if! {
2525
target_family = "unix",
2626
all(target_vendor = "fortanix", target_env = "sgx"),
2727
target_os = "solid_asp3",
28+
target_os = "xous",
2829
))] {
2930
mod queue;
3031
pub use queue::{Once, OnceState};

0 commit comments

Comments
 (0)