mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-03-12 00:45:28 +00:00
update doc for multi-thread (#284)
This commit is contained in:
parent
d98ab63e5c
commit
acb68c64c2
|
@ -28,6 +28,7 @@ iwasm VM core
|
|||
- [Embeddable with the supporting C API's](./doc/embed_wamr.md)
|
||||
- [The mechanism for exporting native API's to WASM applications](./doc/export_native_api.md)
|
||||
- [Multiple modules as dependencies](./doc/multi_module.md)
|
||||
- [Thread management and pthread library](./doc/pthread_library.md)
|
||||
|
||||
### post-MVP features
|
||||
- [Non-trapping float-to-int conversions](https://github.com/WebAssembly/nontrapping-float-to-int-conversions)
|
||||
|
|
|
@ -542,6 +542,10 @@ wasm_exec_env_set_aux_stack(WASMExecEnv *exec_env,
|
|||
if (module_inst->module_type == Wasm_Module_Bytecode) {
|
||||
return wasm_set_aux_stack(exec_env, start_offset, size);
|
||||
}
|
||||
#endif
|
||||
#if WASM_ENABLE_AOT != 0
|
||||
/* TODO: implement set aux stack in AoT mode */
|
||||
(void)module_inst;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
@ -556,6 +560,10 @@ wasm_exec_env_get_aux_stack(WASMExecEnv *exec_env,
|
|||
if (module_inst->module_type == Wasm_Module_Bytecode) {
|
||||
return wasm_get_aux_stack(exec_env, start_offset, size);
|
||||
}
|
||||
#endif
|
||||
#if WASM_ENABLE_AOT != 0
|
||||
/* TODO: implement get aux stack in AoT mode */
|
||||
(void)module_inst;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -88,6 +88,7 @@ shared_memory_dec_reference(WASMModuleCommon *module)
|
|||
return -1;
|
||||
}
|
||||
|
||||
#if WASM_ENABLE_INTERP != 0
|
||||
WASMMemoryInstance*
|
||||
shared_memory_get_memory_inst(WASMSharedMemNode *node)
|
||||
{
|
||||
|
@ -121,4 +122,6 @@ shared_memory_set_memory_inst(WASMModuleCommon *module,
|
|||
return node;
|
||||
}
|
||||
|
||||
#endif /* end of WASM_ENABLE_INTERP */
|
||||
|
||||
#endif /* end of WASM_ENABLE_SHARED_MEMORY */
|
||||
|
|
|
@ -1131,11 +1131,9 @@ typedef struct WASMNativeGlobalDef {
|
|||
} WASMNativeGlobalDef;
|
||||
|
||||
static WASMNativeGlobalDef native_global_defs[] = {
|
||||
#if WASM_ENABLE_SPEC_TEST != 0
|
||||
{ "spectest", "global_i32", .global_data.i32 = 666 },
|
||||
{ "spectest", "global_f32", .global_data.f32 = 666.6 },
|
||||
{ "spectest", "global_f64", .global_data.f64 = 666.6 },
|
||||
#endif
|
||||
{ "test", "global-i32", .global_data.i32 = 0 },
|
||||
{ "test", "global-f32", .global_data.f32 = 0 },
|
||||
{ "env", "STACKTOP", .global_data.u32 = 0 },
|
||||
|
|
Loading…
Reference in New Issue
Block a user