1 #ifndef OPENMW_COMPONENTS_UNREFQUEUE_H
2 #define OPENMW_COMPONENTS_UNREFQUEUE_H
7 #include <osg/Referenced>
18 std::deque<osg::ref_ptr<const osg::Referenced> >
mObjects;
30 void push(
const osg::Referenced* obj);
void push(const osg::Referenced *obj)
Adds an object to the list of objects to be unreferenced. Call from the main thread.
Definition: unrefqueue.cpp:19
A work queue that users can push work items onto, to be completed by one or more background threads...
Definition: workqueue.hpp:48
void flush(SceneUtil::WorkQueue *workQueue)
Definition: unrefqueue.cpp:24
Definition: unrefqueue.hpp:15
Definition: workqueue.hpp:17
std::deque< osg::ref_ptr< const osg::Referenced > > mObjects
Definition: unrefqueue.hpp:18
unsigned int getNumItems() const
Definition: unrefqueue.cpp:34
Handles unreferencing of objects through the WorkQueue. Typical use scenario would be the main thread...
Definition: unrefqueue.hpp:24
UnrefQueue()
Definition: unrefqueue.cpp:14
virtual void doWork()
Override in a derived WorkItem to perform actual work.
Definition: unrefqueue.cpp:9
osg::ref_ptr< UnrefWorkItem > mWorkItem
Definition: unrefqueue.hpp:39