Ignore:
Timestamp:
Mar 13, 2014, 7:30:17 PM (10 years ago)
Author:
hock@…
Message:

priority queue (but not tested)

--> FIXME in SystemEvent.h (has to be fixed first!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/system/SystemEvent.h

    r12761 r12763  
    8686        }
    8787
     88        // FIXME AKTUELL MARIO: copy deadline (etc?) !!!
    8889        inline SystemEvent(const SystemEvent& copy) {
    8990                this->scheduledTime = copy.scheduledTime;
     
    133134        }
    134135
    135         inline bool operator<(const SystemEvent& right) const {
    136                 return remainingDelay < right.remainingDelay;
     136        bool operator<(const SystemEvent& right) const
     137        {
     138                return this->deadline < right.deadline;
    137139        }
     140
     141    bool operator>(const SystemEvent& right) const
     142    {
     143        return this->deadline > right.deadline;
     144    }
    138145
    139146};
Note: See TracChangeset for help on using the changeset viewer.