/* Change Logs: Date Author Notes  Bernard first version.  */
static void _rt_pipe_resume_writer(struct rt_audio_pipe *pipe)
/* Change Logs: Date Author Notes  Bernard first version.  */
static void _rt_pipe_resume_writer(struct rt_audio_pipe *pipe)
{
    if (!rt_list_isempty(&pipe->suspended_write_list))
    {
        rt_thread_t thread;
        RT_ASSERT(pipe->flag & RT_PIPE_FLAG_BLOCK_WR);
        thread = rt_list_entry(pipe->suspended_write_list.next,
                               struct rt_thread,
                               tlist);
        rt_thread_resume(thread);
        rt_schedule();
    }
}