update doc for multi-thread (#284)

This commit is contained in:
Xu Jun 2020-06-16 15:01:35 +08:00 committed by GitHub
parent d98ab63e5c
commit acb68c64c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 2 deletions

View File

@ -28,6 +28,7 @@ iwasm VM core
- [Embeddable with the supporting C API's](./doc/embed_wamr.md) - [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) - [The mechanism for exporting native API's to WASM applications](./doc/export_native_api.md)
- [Multiple modules as dependencies](./doc/multi_module.md) - [Multiple modules as dependencies](./doc/multi_module.md)
- [Thread management and pthread library](./doc/pthread_library.md)
### post-MVP features ### post-MVP features
- [Non-trapping float-to-int conversions](https://github.com/WebAssembly/nontrapping-float-to-int-conversions) - [Non-trapping float-to-int conversions](https://github.com/WebAssembly/nontrapping-float-to-int-conversions)

View File

@ -542,6 +542,10 @@ wasm_exec_env_set_aux_stack(WASMExecEnv *exec_env,
if (module_inst->module_type == Wasm_Module_Bytecode) { if (module_inst->module_type == Wasm_Module_Bytecode) {
return wasm_set_aux_stack(exec_env, start_offset, size); 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 #endif
return false; return false;
} }
@ -556,6 +560,10 @@ wasm_exec_env_get_aux_stack(WASMExecEnv *exec_env,
if (module_inst->module_type == Wasm_Module_Bytecode) { if (module_inst->module_type == Wasm_Module_Bytecode) {
return wasm_get_aux_stack(exec_env, start_offset, size); 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 #endif
return false; return false;
} }

View File

@ -88,6 +88,7 @@ shared_memory_dec_reference(WASMModuleCommon *module)
return -1; return -1;
} }
#if WASM_ENABLE_INTERP != 0
WASMMemoryInstance* WASMMemoryInstance*
shared_memory_get_memory_inst(WASMSharedMemNode *node) shared_memory_get_memory_inst(WASMSharedMemNode *node)
{ {
@ -121,4 +122,6 @@ shared_memory_set_memory_inst(WASMModuleCommon *module,
return node; return node;
} }
#endif /* end of WASM_ENABLE_INTERP */
#endif /* end of WASM_ENABLE_SHARED_MEMORY */ #endif /* end of WASM_ENABLE_SHARED_MEMORY */

View File

@ -1131,11 +1131,9 @@ typedef struct WASMNativeGlobalDef {
} WASMNativeGlobalDef; } WASMNativeGlobalDef;
static WASMNativeGlobalDef native_global_defs[] = { static WASMNativeGlobalDef native_global_defs[] = {
#if WASM_ENABLE_SPEC_TEST != 0
{ "spectest", "global_i32", .global_data.i32 = 666 }, { "spectest", "global_i32", .global_data.i32 = 666 },
{ "spectest", "global_f32", .global_data.f32 = 666.6 }, { "spectest", "global_f32", .global_data.f32 = 666.6 },
{ "spectest", "global_f64", .global_data.f64 = 666.6 }, { "spectest", "global_f64", .global_data.f64 = 666.6 },
#endif
{ "test", "global-i32", .global_data.i32 = 0 }, { "test", "global-i32", .global_data.i32 = 0 },
{ "test", "global-f32", .global_data.f32 = 0 }, { "test", "global-f32", .global_data.f32 = 0 },
{ "env", "STACKTOP", .global_data.u32 = 0 }, { "env", "STACKTOP", .global_data.u32 = 0 },