mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-13 20:46:48 +00:00
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:
commit
d769aceab6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user