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:
@ -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.
|
||||
|
||||
@ -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
|
||||
*
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user