* @brief This function will wait for a completion, if the completion is unavailable, the thread shall wait for * the completion up to a specified time. * * @param completion is a pointer to a completion object. * * @param timeout is a timeout period (unit: OS ticks). If the completion is unavailable, the thread will wait for * the completion done up to the amount of tim
| 74 | * @warning This function can ONLY be called in the thread context. It MUST NOT be called in interrupt context. |
| 75 | */ |
| 76 | rt_err_t rt_completion_wait(struct rt_completion *completion, |
| 77 | rt_int32_t timeout) |
| 78 | { |
| 79 | return rt_completion_wait_flags(completion, timeout, RT_UNINTERRUPTIBLE); |
| 80 | } |
| 81 | RTM_EXPORT(rt_completion_wait); |
no test coverage detected