about summary refs log tree commit diff
path: root/library/std/src/sys/pal
diff options
context:
space:
mode:
authorSean Cross <sean@xobs.io>2023-12-24 15:09:52 +0800
committerSean Cross <sean@xobs.io>2024-01-13 09:13:56 -0800
commit762e58a218906e2ba403bcc9916b4f4378a6c1de (patch)
treeaeb5e32c0d64d8ad0682352f10633b769ee0f852 /library/std/src/sys/pal
parenteabd445053ddf9217ab9b464b5ec239fcaf416d3 (diff)
downloadrust-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/src/sys/pal')
-rw-r--r--library/std/src/sys/pal/xous/mod.rs2
1 files changed, 0 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;