MCPcopy Create free account
hub / github.com/OpenMW/openmw / flush

Method flush

components/sceneutil/unrefqueue.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 void UnrefQueue::flush(SceneUtil::WorkQueue& workQueue)
23 {
24 if (mObjects.empty())
25 return;
26
27 // Move only objects to keep allocated storage in mObjects
28 workQueue.addWorkItem(new ClearVector(std::vector<osg::ref_ptr<osg::Referenced>>(
29 std::move_iterator(mObjects.begin()), std::move_iterator(mObjects.end()))));
30 mObjects.clear();
31 }
32}

Callers 4

attachParentConsoleFunction · 0.45
writeMethod · 0.45
writeMethod · 0.45
frameMethod · 0.45

Calls 5

addWorkItemMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected