exos_log_delete(): Release all resources for a log handle

<< 点击显示目录 >>

主页  exOS使用助手 > exOS Automation Help > Development > Programming > exOS Log API reference (exos_log.h) >

exos_log_delete(): Release all resources for a log handle

 EXOS_ERROR_CODE exos_log_delete(exos_log_handle_t *log);

每个日志句柄都会通过 exos_log_init() 函数分配一些资源(运行前的发送缓冲区、消息队列句柄......) , 当应用程序结束或由于某种原因决定停止日志记录时,这些资源应被释放。

此函数用于释放已分配的资源。

参数

log:指向  需要释放资源的exos_log_handle_t的指针


EXOS_ERROR_CODE exos_log_delete(exos_log_handle_t *log);

Every log handle allocates a number of resources (pre-operational send buffer, message queue handles ..) with the exos_log_init() function that should be released when the application ends or for whatever reason decides to stop logging.

This function is used to free up the allocated resources.

Parameters:

log: pointer to the exos_log_handle_t from which the resources should be released