提交 e834b948 编写于 作者: C chaos.proton@gmail.com

rtgui_system: always detach ack_mb in rtgui_thread_send_sync

The old code won't detach ack_mb if error occurs. Fix it.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1807 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 92d84652
......@@ -430,10 +430,10 @@ rt_err_t rtgui_thread_send_sync(rt_thread_t tid, rtgui_event_t* event, rt_size_t
else
r = RT_EOK;
__return:
/* fini ack mailbox */
rt_mb_detach(&ack_mb);
__return:
return r;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册