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

Function _do_push

components/vbus/prio_queue.c:21–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19};
20
21static void _do_push(struct rt_prio_queue *que,
22 rt_uint8_t prio,
23 struct rt_prio_queue_item *item)
24{
25 if (que->head[prio] == RT_NULL)
26 {
27 que->head[prio] = item;
28 que->bitmap |= 1 << prio;
29 }
30 else
31 {
32 RT_ASSERT(que->tail[prio]);
33 que->tail[prio]->next = item;
34 }
35 que->tail[prio] = item;
36}
37
38static struct rt_prio_queue_item* _do_pop(struct rt_prio_queue *que)
39{

Callers 1

rt_prio_queue_pushFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected