MCPcopy Index your code
hub / github.com/RT-Thread/rt-thread / rt_wqueue_init

Function rt_wqueue_init

components/drivers/include/ipc/waitqueue.h:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35int __wqueue_default_wake(struct rt_wqueue_node *wait, void *key);
36
37rt_inline void rt_wqueue_init(rt_wqueue_t *queue)
38{
39 RT_ASSERT(queue != RT_NULL);
40
41 queue->flag = RT_WQ_FLAG_CLEAN;
42 rt_list_init(&(queue->waiting_list));
43 rt_spin_lock_init(&(queue->spinlock));
44}
45
46void rt_wqueue_add(rt_wqueue_t *queue, struct rt_wqueue_node *node);
47void rt_wqueue_remove(struct rt_wqueue_node *node);

Callers 15

lwp_pid_initFunction · 0.85
lwp_createFunction · 0.85
rt_raw_channel_openFunction · 0.85
lwp_tty_create_extFunction · 0.85
pts_allocFunction · 0.85
rt_device_registerFunction · 0.85
rt_sdhci_init_hostFunction · 0.85
rt_pipe_createFunction · 0.85
rt_condvar_initFunction · 0.85
rt_eventfd_createFunction · 0.85
epoll_member_initFunction · 0.85
timerfd_do_createFunction · 0.85

Calls 2

rt_list_initFunction · 0.85
rt_spin_lock_initFunction · 0.50

Tested by

no test coverage detected