* @brief This function will remove a node from the wait queue. * * @param node is a pointer to the node to be removed. */
| 42 | * @param node is a pointer to the node to be removed. |
| 43 | */ |
| 44 | void rt_wqueue_remove(struct rt_wqueue_node *node) |
| 45 | { |
| 46 | rt_base_t level; |
| 47 | |
| 48 | RT_ASSERT(node->wqueue != RT_NULL); |
| 49 | |
| 50 | level = rt_spin_lock_irqsave(&(node->wqueue->spinlock)); |
| 51 | rt_list_remove(&(node->list)); |
| 52 | rt_spin_unlock_irqrestore(&(node->wqueue->spinlock), level); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * @brief This function is the default wakeup function, but it doesn't do anything in actual. |
no test coverage detected