Refactored the sort of the requestQueue so that there is single code path for doing the sort.

This commit is contained in:
Robert Osfield
2008-06-27 18:59:27 +00:00
parent 214491dd94
commit a9b05e0815
2 changed files with 31 additions and 16 deletions

View File

@@ -348,6 +348,8 @@ class OSGDB_EXPORT DatabasePager : public osg::NodeVisitor::DatabaseRequestHandl
struct RequestQueue : public osg::Referenced
{
typedef std::list< osg::ref_ptr<DatabaseRequest> > RequestList;
void sort();
RequestList _requestList;
OpenThreads::Mutex _requestMutex;