|
|
@ -2,7 +2,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include <deque>
|
|
|
|
#include <deque>
|
|
|
|
|
|
|
|
|
|
|
|
#include <osg/Object>
|
|
|
|
|
|
|
|
//#include <osg/Timer>
|
|
|
|
//#include <osg/Timer>
|
|
|
|
//#include <iostream>
|
|
|
|
//#include <iostream>
|
|
|
|
|
|
|
|
|
|
|
@ -14,7 +13,7 @@ namespace SceneUtil
|
|
|
|
class UnrefWorkItem : public SceneUtil::WorkItem
|
|
|
|
class UnrefWorkItem : public SceneUtil::WorkItem
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
std::deque<osg::ref_ptr<const osg::Object> > mObjects;
|
|
|
|
std::deque<osg::ref_ptr<const osg::Referenced> > mObjects;
|
|
|
|
|
|
|
|
|
|
|
|
virtual void doWork()
|
|
|
|
virtual void doWork()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -30,7 +29,7 @@ namespace SceneUtil
|
|
|
|
mWorkItem = new UnrefWorkItem;
|
|
|
|
mWorkItem = new UnrefWorkItem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void UnrefQueue::push(const osg::Object *obj)
|
|
|
|
void UnrefQueue::push(const osg::Referenced *obj)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mWorkItem->mObjects.push_back(obj);
|
|
|
|
mWorkItem->mObjects.push_back(obj);
|
|
|
|
}
|
|
|
|
}
|
|
|
|