函数:rt_wqueue_wait()

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

 

函数:pipe_fops_write()

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

 

相关文章:

  • 2022-12-23
  • 2021-12-07
  • 2021-04-28
  • 2021-09-15
  • 2021-10-02
  • 2021-10-12
  • 2022-12-23
  • 2021-08-01
猜你喜欢
  • 2021-09-04
  • 2021-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-12-22
  • 2021-12-16
  • 2022-12-23
相关资源
相似解决方案