Add missing get_name for wasm::thread.
This commit is contained in:
parent
3793e5ba23
commit
eb5328b721
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user