MCPcopy Create free account
hub / github.com/YatSenOS/YatSenOS-Tutorial-Volume-1 / push_front

Method push_front

lab8/src/1/src/utils/list.cpp:71–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void List::push_front(ListItem *itemPtr)
72{
73 ListItem *temp = head.next;
74 if (temp)
75 {
76 temp->previous = itemPtr;
77 }
78 head.next = itemPtr;
79 itemPtr->previous = &head;
80 itemPtr->next = temp;
81}
82
83void List::pop_front()
84{

Callers 1

MESA_WakeUpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected