Fix typo 'destory'

This commit is contained in:
Weining Lu 2019-09-10 15:28:42 +08:00
parent f610353b78
commit db2fdbadc1
14 changed files with 20 additions and 20 deletions

View File

@ -184,7 +184,7 @@ bool app_manager_is_interrupting_module(uint32 module_type)
return app_manager_get_module_data(module_type)->wd_timer.is_interrupting;
}
extern void destory_module_timer_ctx(unsigned int module_id);
extern void destroy_module_timer_ctx(unsigned int module_id);
void release_module(module_data *m_data)
{
@ -199,7 +199,7 @@ void release_module(module_data *m_data)
m_data->timer_ctx = NULL;
destory_module_timer_ctx(m_data->id);
destroy_module_timer_ctx(m_data->id);
bh_free(m_data);
}

View File

@ -87,7 +87,7 @@ timer_id_t
wasm_create_timer(wasm_module_inst_t module_inst,
int interval, bool is_period, bool auto_start);
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);
void
wasm_timer_cancel(wasm_module_inst_t module_inst, timer_id_t timer_id);
void

View File

@ -29,7 +29,7 @@ timer_id_t
wasm_create_timer(int interval, bool is_period, bool auto_start);
void
wasm_timer_destory(timer_id_t timer_id);
wasm_timer_destroy(timer_id_t timer_id);
void
wasm_timer_cancel(timer_id_t timer_id);

View File

@ -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),

View File

@ -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_ */

View File

@ -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

View File

@ -209,7 +209,7 @@ wasm_runtime_create_exec_env(uint32_t stack_size);
* @param env the execution environment to destroy
*/
void
wasm_runtime_destory_exec_env(wasm_exec_env_t env);
wasm_runtime_destroy_exec_env(wasm_exec_env_t env);
/**
* Call the given WASM function of a WASM module instance with

View File

@ -99,7 +99,7 @@ wasm_hash_map_find(HashMap *map, void *key);
* @p_old_value if not NULL, copies the old value to it
*
* @return true if success, false otherwise
* Note: the old value won't be destroyed by value destory function,
* Note: the old value won't be destroyed by value destroy function,
* it will be copied to p_old_value for user to process.
*/
bool

View File

@ -1116,7 +1116,7 @@ wasm_runtime_create_exec_env(uint32 stack_size)
}
void
wasm_runtime_destory_exec_env(WASMExecEnv *env)
wasm_runtime_destroy_exec_env(WASMExecEnv *env)
{
if (env) {
wasm_free(env->stack);

View File

@ -164,7 +164,7 @@ extern gc_handle_t gc_init_with_pool(char *buf, gc_size_t buf_size);
/**
* Destroy heap which is initilized from a buffer
*
* @param handle handle to heap needed destory
* @param handle handle to heap needed destroy
*
* @return GC_SUCCESS if success
* GC_ERROR for bad parameters or failed system resource freeing.

View File

@ -173,9 +173,9 @@ int vm_recursive_mutex_init_instr(korp_mutex *mutex, const char*func_name);
#endif
/**
* This function destorys a mutex
* This function destroys a mutex
*
* @param mutex pointer to mutex need destory
* @param mutex pointer to mutex need destroy
*
* @return BH_SUCCESS if success
*/
@ -308,7 +308,7 @@ int vm_cond_init_instr(korp_cond *cond, const char*func_name);
#endif
/**
* This function destorys condition variable
* This function destroys condition variable
*
* @param cond pointer to condition variable
*

View File

@ -338,7 +338,7 @@ bool sys_timer_cancel(timer_ctx_t ctx, uint32 timer_id)
return from_active;
}
bool sys_timer_destory(timer_ctx_t ctx, uint32 timer_id)
bool sys_timer_destroy(timer_ctx_t ctx, uint32 timer_id)
{
bool from_active;
app_timer_t * t = remove_timer(ctx, timer_id, &from_active);
@ -347,7 +347,7 @@ bool sys_timer_destory(timer_ctx_t ctx, uint32 timer_id)
release_timer(ctx, t);
PRINT("sys_timer_destory called\n");
PRINT("sys_timer_destroy called\n");
return true;
}

View File

@ -39,7 +39,7 @@ unsigned int timer_ctx_get_owner(timer_ctx_t ctx);
uint32 sys_create_timer(timer_ctx_t ctx, int interval, bool is_period,
bool auto_start);
bool sys_timer_destory(timer_ctx_t ctx, uint32 timer_id);
bool sys_timer_destroy(timer_ctx_t ctx, uint32 timer_id);
bool sys_timer_cancel(timer_ctx_t ctx, uint32 timer_id);
bool sys_timer_restart(timer_ctx_t ctx, uint32 timer_id, int interval);
void cleanup_app_timers(timer_ctx_t ctx);

View File

@ -31,7 +31,7 @@ A typical WAMR API usage is shown below (some return value checks are ignored):
/* the return value is stored in argv[0] */
printf("fib function return: %d\n", argv[0]);
wasm_runtime_destory_exec_env(env);
wasm_runtime_destroy_exec_env(env);
wasm_runtime_deinstantiate(inst);
wasm_runtime_unload(module);
wasm_runtime_destroy();