MCPcopy Create free account
hub / github.com/DFHack/dfhack / process_queue

Method process_queue

plugins/devel/check-structures-sanity/dispatch.cpp:140–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140bool Checker::process_queue()
141{
142 if (queue.empty())
143 {
144 return false;
145 }
146
147 auto item = std::move(queue.front());
148 queue.pop_front();
149
150 auto cs = data.find(item.ptr);
151 if (cs == data.end())
152 {
153 // happens if pointer is determined to be part of a larger structure
154 return true;
155 }
156
157 dispatch_item(item, cs->second.second);
158
159 return true;
160}
161
162
163void Checker::dispatch_item(const QueueItem & base, const CheckedStructure & cs)

Callers 1

commandFunction · 0.80

Calls 3

emptyMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected