/* This function will resume all suspended threads in the IPC object list, including the suspended list of IPC object, and private list of mailbox etc.  */
rt_inline rt_err_t _ipc_list_resume_all(rt_list_t *list)
/* This function will resume all suspended threads in the IPC object list, including the suspended list of IPC object, and private list of mailbox etc.  */
rt_inline rt_err_t _ipc_list_resume_all(rt_list_t *list)
{
    struct rt_thread *thread;
    while (!rt_list_isempty(list))
    {
        thread = rt_list_entry(list->next, struct rt_thread, tlist);
        thread->error = -RT_ERROR;
        rt_thread_resume(thread);
    }
    return RT_EOK;
}