* @brief This function indicates a completion has done and wakeup the thread * * @param completion is a pointer to a completion object. * @return RT_EOK if wakeup succeed. * RT_EEMPTY if wakeup failure and the completion is set to completed. * RT_EBUSY if the completion is still in completed state */
| 31 | * RT_EBUSY if the completion is still in completed state |
| 32 | */ |
| 33 | rt_err_t rt_completion_wakeup(struct rt_completion *completion) |
| 34 | { |
| 35 | return rt_completion_wakeup_by_errno(completion, -1); |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * @brief This is same as rt_completion_wait(), except that this API is NOT |
no test coverage detected