Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3860 in orxonox.OLD for orxonox/trunk/src/animation_player.cc


Ignore:
Timestamp:
Apr 17, 2005, 6:20:02 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: moved likely to compiler.h in defs
also reset all the UNLIKELY_IF functions to how they should look.

the old approach is still valid, but depricated.

@patrick: i hope this is ok for you, for it is LINUX-standard.
and i think windows is also able to handle likely/unlikely because it is a compiler issue not a system issue

File:
1 edited

Legend:

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

    r3847 r3860  
    1717
    1818#include "animation_player.h"
     19
     20#include "compiler.h"
    1921
    2022using namespace std;
     
    120122        {
    121123          anim->tick(timePassed);
     124          if(unlikely(anim->ifDelete()))
     125          {
     126            this->animationList->remove(anim);
     127            delete anim;
     128          }
    122129          anim = animIt->nextElement();
    123130        }
Note: See TracChangeset for help on using the changeset viewer.