MCPcopy Create free account
hub / github.com/crossuo/crossuo / Insert

Method Insert

src/BaseQueue.cpp:112–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void CBaseQueue::Insert(CBaseQueueItem *first, CBaseQueueItem *item)
113{
114 if (first == nullptr)
115 {
116 item->m_Next = m_Items;
117 item->m_Prev = nullptr;
118 if (m_Items != nullptr)
119 {
120 m_Items->m_Prev = item;
121 }
122 m_Items = item;
123 }
124 else
125 {
126 CBaseQueueItem *next = first->m_Next;
127 item->m_Next = next;
128 item->m_Prev = first;
129 first->m_Next = item;
130 if (next != nullptr)
131 {
132 next->m_Prev = item;
133 }
134 }
135}
136
137void CBaseQueue::Unlink(CBaseQueueItem *item)
138{

Callers 4

AddMultiObjectMethod · 0.45
hid_openFunction · 0.45
hid_open_pathFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected