Skip to content

Commit f82e30c

Browse files
authored
Rollup merge of rust-lang#145096 - Spxg:w/wasm_atomic, r=tgross35
Fix wasm target build with atomics feature Introduced by rust-lang#115746 close rust-lang#145101
2 parents 36871ff + 98f973a commit f82e30c

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)