![]() |
RT-Thread API参考手册
4.0.3
嵌入式实时操作系统
|
完成信号量接口 更多...
结构体 | |
| struct | rt_completion |
| completion控制块 更多... | |
函数 | |
| void | rt_completion_init (struct rt_completion *completion) |
| 初始化completion 更多... | |
| rt_err_t | rt_completion_wait (struct rt_completion *completion, rt_int32_t timeout) |
| 等待 completion 更多... | |
| void | rt_completion_done (struct rt_completion *completion) |
| 发送 completion信号 更多... | |
完成信号量接口
| void rt_completion_init | ( | struct rt_completion * | completion | ) |
初始化completion
该函数将初始化一个 completion 对象。
| completion | completion 句柄 |
| rt_err_t rt_completion_wait | ( | struct rt_completion * | completion, |
| rt_int32_t | timeout | ||
| ) |
等待 completion
该函数将使调用线程挂起指定的等待时间等待completion信号。
| completion | completion 句柄 |
| timeout | 指定的超时时间 |
| void rt_completion_done | ( | struct rt_completion * | completion | ) |
发送 completion信号
该函数将发送 completion信号。
| completion | completion 句柄 |