int crtpReset(void) { //xQueueReset(tmpQueue); rt_mq_detach(tmpQueue); if (link->reset) { link->reset(); } return 0; }
rt_err_t rt_mq_delete (rt_mq_t mq) { /* parameter check */ RT_ASSERT(mq != RT_NULL); rt_mq_detach(mq); /* free mailbox pool */ rt_free(mq->msg_pool); /* delete mailbox object */ rt_free(mq); return RT_EOK; }
static void ftk_source_touch_destroy(FtkSource* thiz) { if (thiz != NULL) { DECL_PRIV(thiz, priv); ftk_rtthread_select_fd_free(priv->fd); rt_mq_detach(&priv->mq); rt_device_control(priv->device, RT_TOUCH_EVENTPOST, NULL); rt_device_close(priv->device); FTK_ZFREE(thiz, sizeof(thiz) + sizeof(PrivInfo)); } }