Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3661 in orxonox.OLD for orxonox/trunk/src/garbage_collector.cc


Ignore:
Timestamp:
Mar 29, 2005, 10:34:25 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: some changes in the benchmark routines and in the list. list is now more efficent than ever and is integrated in the benchmark system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/garbage_collector.cc

    r3647 r3661  
    8888  WorldInterface* wi = WorldInterface::getInstance();
    8989  tList<WorldEntity>* list = wi->getEntityList();
    90   //WorldEntity* entity = list->enumerate();
    91  // while( entity != NULL)
    92   //  {
    93   //  if( entity->isFinalized())
    94   //{
    95   //  PRINTF(3)("Finalizing object in list - not yet done realy\n");
     90
     91  tIterator<WorldEntity>* iterator = list->getIterator();
     92  WorldEntity* entity = iterator->nextElement();
     93  while( entity != NULL)
     94    {
     95      if( entity->isFinalized())
     96        {
     97          PRINTF(3)("Finalizing object in list - not yet done realy\n");
    9698          /* first remove out of entity list */
    9799          //list->remove(entity);
    98100          /* second remove out of pnode tree */
    99           //NullParent* np = NullParent::getInstance();
     101          //llParent* np = NullParent::getInstance();
    100102          //np->removeChild(np);
    101103         
    102   //}
    103   //   entity = list->nextElement();
    104   //}
     104        }
     105      entity = iterator->nextElement();
     106    }
    105107 
    106108  /* reset time to count again up to this->delay */
Note: See TracChangeset for help on using the changeset viewer.