Changeset 59:a0d1aadc087d in finroc_plugins_scheduling


Ignore:
Timestamp:
09.01.2021 00:18:04 (9 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Phase:
public
Message:

Adds operator== for tTaskProfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tTaskProfile.h

    r21 r59  
    121121} 
    122122 
     123inline bool operator==(const tTaskProfile& lhs, const tTaskProfile& rhs) 
     124{ 
     125  return lhs.last_execution_duration == rhs.last_execution_duration && lhs.max_execution_duration == rhs.max_execution_duration && lhs.average_execution_duration == rhs.average_execution_duration && 
     126         lhs.total_execution_duration == rhs.total_execution_duration && lhs.handle == rhs.handle && lhs.task_classification == rhs.task_classification; 
     127} 
     128 
     129inline bool operator!=(const tTaskProfile& lhs, const tTaskProfile& rhs) 
     130{ 
     131  return !(lhs == rhs); 
     132} 
     133 
    123134 
    124135//---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.