Rollup merge of #121933 - Iansa9:thread-name-wasm-fix, r=Nilstrieb

Add missing get_name for wasm::thread.

Fixing #121932 by implementing `get_name` in `wasm:🧵:Thread`.
This commit is contained in:
Guillaume Gomez 2024-03-03 14:07:43 +01:00 committed by GitHub
commit d769aceab6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
use crate::ffi::CStr;
use crate::ffi::CString;
use crate::io;
use crate::num::NonZero;
use crate::sys::unsupported;
@ -17,6 +18,9 @@ impl Thread {
pub fn yield_now() {}
pub fn set_name(_name: &CStr) {}
pub fn get_name() -> Option<CString> {
None
}
pub fn sleep(dur: Duration) {
use crate::arch::wasm32;