Fix typo 'destory' and compile issue (#119)
* Optimize samples build process * Samples: build 64 bit version by default * Fix typo 'destory' * Fix compile issue
This commit is contained in:
@ -133,7 +133,7 @@ static NativeSymbol extended_native_symbol_defs[] = {
|
||||
EXPORT_WASM_API(wasm_post_request),
|
||||
EXPORT_WASM_API(wasm_sub_event),
|
||||
EXPORT_WASM_API(wasm_create_timer),
|
||||
EXPORT_WASM_API(wasm_timer_destory),
|
||||
EXPORT_WASM_API(wasm_timer_destroy),
|
||||
EXPORT_WASM_API(wasm_timer_cancel),
|
||||
EXPORT_WASM_API(wasm_timer_restart),
|
||||
EXPORT_WASM_API(wasm_get_sys_tick_ms),
|
||||
|
||||
@ -23,6 +23,6 @@
|
||||
void init_wasm_timer();
|
||||
timer_ctx_t get_wasm_timer_ctx();
|
||||
timer_ctx_t create_wasm_timer_ctx(unsigned int module_id, int prealloc_num);
|
||||
void destory_module_timer_ctx(unsigned int module_id);
|
||||
void destroy_module_timer_ctx(unsigned int module_id);
|
||||
|
||||
#endif /* LIB_BASE_RUNTIME_LIB_H_ */
|
||||
|
||||
@ -123,7 +123,7 @@ timer_ctx_t create_wasm_timer_ctx(unsigned int module_id, int prealloc_num)
|
||||
return ctx;
|
||||
}
|
||||
|
||||
void destory_module_timer_ctx(unsigned int module_id)
|
||||
void destroy_module_timer_ctx(unsigned int module_id)
|
||||
{
|
||||
vm_mutex_lock(&g_timer_ctx_list_mutex);
|
||||
timer_ctx_node_t* elem = (timer_ctx_node_t*)
|
||||
@ -158,9 +158,9 @@ wasm_create_timer(wasm_module_inst_t module_inst,
|
||||
}
|
||||
|
||||
void
|
||||
wasm_timer_destory(wasm_module_inst_t module_inst, timer_id_t timer_id)
|
||||
wasm_timer_destroy(wasm_module_inst_t module_inst, timer_id_t timer_id)
|
||||
{
|
||||
sys_timer_destory(get_wasm_timer_ctx(), timer_id);
|
||||
sys_timer_destroy(get_wasm_timer_ctx(), timer_id);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user