about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorSpxg <unsafe@outlook.es>2025-08-08 21:27:46 +0800
committerSpxg <unsafe@outlook.es>2025-08-08 22:45:25 +0800
commitc3e504d399a51781f328d4195c79ce9b7d44388d (patch)
tree095af6fa323fd80721e81a33a2facefa454c1575 /library
parent2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a (diff)
downloadrust-c3e504d399a51781f328d4195c79ce9b7d44388d.tar.gz
rust-c3e504d399a51781f328d4195c79ce9b7d44388d.zip
Fix wasm target build with atomics feature
Diffstat (limited to 'library')
-rw-r--r--library/std/src/sys/pal/wasm/atomics/thread.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/std/src/sys/pal/wasm/atomics/thread.rs b/library/std/src/sys/pal/wasm/atomics/thread.rs
index ebfabaafc79..42a7dbdf8b8 100644
--- a/library/std/src/sys/pal/wasm/atomics/thread.rs
+++ b/library/std/src/sys/pal/wasm/atomics/thread.rs
@@ -56,6 +56,10 @@ impl Thread {
     pub fn join(self) {}
 }
 
+pub(crate) fn current_os_id() -> Option<u64> {
+    None
+}
+
 pub fn available_parallelism() -> io::Result<NonZero<usize>> {
     unsupported()
 }