pub unsafe extern "C" fn wasm_runtime_spawn_thread(
exec_env: wasm_exec_env_t,
tid: *mut wasm_thread_t,
callback: wasm_thread_callback_t,
arg: *mut c_void,
) -> i32
Expand description
Spawn a thread from the given exec_env
@param exec_env the original exec_env @param tid thread id to be returned to the caller @param callback the callback function provided by the user @param arg the arguments passed to the callback
@return 0 if success, -1 otherwise