Add Rust impl of wasmtime_ssp_sched_yield

Also, add Rust implementation of errno and convert_errno.
This commit is contained in:
Jakub Konka
2019-04-28 16:48:43 +02:00
committed by Dan Gohman
parent 26cbbaab41
commit a51ffb6b6d
5 changed files with 143 additions and 10 deletions

View File

@@ -1413,7 +1413,7 @@ syscalls! {
}
pub unsafe extern "C" fn sched_yield(_vmctx: *mut VMContext,) -> wasm32::__wasi_errno_t {
let e = host::wasmtime_ssp_sched_yield();
let e = host_impls::wasmtime_ssp_sched_yield();
return_encoded_errno(e)
}