MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / runNextQueuedWork

Method runNextQueuedWork

tests/test_python_integration.cpp:166–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 }
165
166 bool runNextQueuedWork() {
167 WorkItem work;
168 {
169 std::lock_guard lock(queued_work_mutex);
170 if (queued_work.empty()) {
171 return false;
172 }
173 work = std::move(queued_work.front());
174 queued_work.pop_front();
175 }
176 if (work.run) {
177 work.run();
178 }
179 return true;
180 }
181
182 bool on_viewer_thread = false;
183 bool accepts_posted_work = true;

Callers 1

TEST_FFunction · 0.80

Calls 5

moveFunction · 0.85
emptyMethod · 0.45
frontMethod · 0.45
pop_frontMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected