RT-Thread ------ waitqueue

函数:rt_wqueue_wait()

把自身线程句柄节点放入链表,放弃CPU,等再次获取CPU,删除节点。

 

函数:pipe_fops_write()

当管道满,如果有读线程被挂起(suspend),唤醒它;然后suspend当前线程,即暂停往管道写数据,只有从管道读出数据后(pipe_fops_read())才唤醒。

 

posted @ 2021-01-17 18:56  流水灯  阅读(218)  评论(0编辑  收藏  举报