MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_wqueue_remove

Function rt_wqueue_remove

components/drivers/ipc/waitqueue.c:44–53  ·  view source on GitHub ↗

* @brief This function will remove a node from the wait queue. * * @param node is a pointer to the node to be removed. */

Source from the content-addressed store, hash-verified

42 * @param node is a pointer to the node to be removed.
43 */
44void 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.

Callers 10

_wait_for_eventFunction · 0.85
rt_condvar_timedwaitFunction · 0.85
_rt_wqueue_waitFunction · 0.85
epoll_close_fdlistFunction · 0.85
epoll_ctl_delFunction · 0.85
epoll_ctl_modFunction · 0.85
epoll_doFunction · 0.85
timerfd_closeFunction · 0.85
timerfd_readFunction · 0.85
poll_teardownFunction · 0.85

Calls 3

rt_list_removeFunction · 0.85
rt_spin_lock_irqsaveFunction · 0.50

Tested by

no test coverage detected