wamr_sys

Function wasm_runtime_init_thread_env

Source
pub unsafe extern "C" fn wasm_runtime_init_thread_env() -> bool
Expand description

Initialize the thread environment. Note: If developer creates a child thread by himself to call the the wasm function in that thread, he should call this API firstly before calling the wasm function and then call wasm_runtime_destroy_thread_env() after calling the wasm function. If the thread is created from the runtime API, it is unnecessary to call these two APIs.

@return true if success, false otherwise