Flutter Engine
fml::DelayedTask Class Reference

#include <delayed_task.h>

Public Member Functions

 DelayedTask (size_t order, const fml::closure &task, fml::TimePoint target_time)
 
 DelayedTask (const DelayedTask &other)
 
 ~DelayedTask ()
 
const fml::closureGetTask () const
 
fml::TimePoint GetTargetTime () const
 
bool operator> (const DelayedTask &other) const
 

Detailed Description

Definition at line 15 of file delayed_task.h.

Constructor & Destructor Documentation

◆ DelayedTask() [1/2]

fml::DelayedTask::DelayedTask ( size_t  order,
const fml::closure task,
fml::TimePoint  target_time 
)

Definition at line 11 of file delayed_task.cc.

References ~DelayedTask().

14  : order_(order), task_(task), target_time_(target_time) {}

◆ DelayedTask() [2/2]

fml::DelayedTask::DelayedTask ( const DelayedTask other)
default

◆ ~DelayedTask()

fml::DelayedTask::~DelayedTask ( )
default

Referenced by DelayedTask().

Member Function Documentation

◆ GetTargetTime()

fml::TimePoint fml::DelayedTask::GetTargetTime ( ) const

Definition at line 24 of file delayed_task.cc.

24  {
25  return target_time_;
26 }

◆ GetTask()

const fml::closure & fml::DelayedTask::GetTask ( ) const

Definition at line 20 of file delayed_task.cc.

20  {
21  return task_;
22 }

◆ operator>()

bool fml::DelayedTask::operator> ( const DelayedTask other) const

Definition at line 28 of file delayed_task.cc.

28  {
29  if (target_time_ == other.target_time_) {
30  return order_ > other.order_;
31  }
32  return target_time_ > other.target_time_;
33 }

The documentation for this class was generated from the following files: