Skip to content

Commit 98f973a

Browse files
committed
Fix wasm target build with atomics feature
1 parent a71ec16 commit 98f973a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

std/src/sys/pal/wasm/atomics/thread.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ impl Thread {
5656
pub fn join(self) {}
5757
}
5858

59+
pub(crate) fn current_os_id() -> Option<u64> {
60+
None
61+
}
62+
5963
pub fn available_parallelism() -> io::Result<NonZero<usize>> {
6064
unsupported()
6165
}

0 commit comments

Comments
 (0)