(handle: u32)
| 272 | /* Wake a `WaitingHostCall` coro: inject `handle`'s Val into its saved-stack top. 0 ok / 1 stale / 2 no waiter / 3 no paused run. */ |
| 273 | #[unsafe(no_mangle)] |
| 274 | pub unsafe extern "C" fn set_host_result(handle: u32) -> i32 { |
| 275 | with_paused_vm(handle, |vm, val| if vm.inject_host_result(val) { 0 } else { 2 }) |
| 276 | } |
| 277 | |
| 278 | /* Wake the `WaitingHostCall(id)` coro with `handle`'s Val; lets the host resolve concurrent calls out of order. Same return codes as `set_host_result`. */ |
| 279 | #[unsafe(no_mangle)] |
nothing calls this directly
no test coverage detected