wamr_sys

Function wasm_runtime_join_thread

Source
pub unsafe extern "C" fn wasm_runtime_join_thread(
    tid: wasm_thread_t,
    retval: *mut *mut c_void,
) -> i32
Expand description

Wait a spawned thread to terminate

@param tid thread id @param retval if not NULL, output the return value of the thread

@return 0 if success, error number otherwise