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

Method push_back

lab8/src/6/src/utils/list.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void List::push_back(ListItem *itemPtr)
47{
48 ListItem *temp = back();
49 if (temp == nullptr)
50 temp = &head;
51 temp->next = itemPtr;
52 itemPtr->previous = temp;
53 itemPtr->next = nullptr;
54}
55
56void List::pop_back()
57{

Callers 3

executeThreadMethod · 0.45
scheduleMethod · 0.45
PMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected