Add missing get_name for wasm::thread.

This commit is contained in:
Ian Neumann 2024-03-03 00:25:51 -08:00
parent 3793e5ba23
commit eb5328b721

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 @@ pub unsafe fn new(_stack: usize, _p: Box<dyn FnOnce()>) -> io::Result<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;