MADARA  3.4.1
StrideTask Class Reference

INTERNAL USE: Task that can be added to a Stride scheduler More...

Public Member Functions

 StrideTask (double rate, bool op)
 Constructor. More...
 
void operator++ (void)
 Increases pass by stride. More...
 
bool operator< (const StrideTask &rhs) const
 Checks for lower pass value. More...
 
bool operator== (const StrideTask &rhs) const
 Checks for pass equality. More...
 
bool operator> (const StrideTask &rhs) const
 Checks for greater pass value. More...
 
void set_rate (double rate)
 Sets the ticket rate, which influences stride. More...
 

Public Attributes

bool operation
 the type of operation More...
 
uint64_t pass
 the current pass which determines next schedule More...
 
uint64_t stride
 the stride to take More...
 
uint64_t tickets
 the number of tickets, which influences stride More...
 

Detailed Description

INTERNAL USE: Task that can be added to a Stride scheduler

Definition at line 10 of file PacketScheduler.cpp.

Constructor & Destructor Documentation

◆ StrideTask()

StrideTask::StrideTask ( double  rate,
bool  op 
)
inline

Constructor.

Definition at line 16 of file PacketScheduler.cpp.

Member Function Documentation

◆ operator++()

void StrideTask::operator++ ( void  )
inline

Increases pass by stride.

Definition at line 47 of file PacketScheduler.cpp.

◆ operator<()

bool StrideTask::operator< ( const StrideTask rhs) const
inline

Checks for lower pass value.

Definition at line 23 of file PacketScheduler.cpp.

◆ operator==()

bool StrideTask::operator== ( const StrideTask rhs) const
inline

Checks for pass equality.

Definition at line 31 of file PacketScheduler.cpp.

◆ operator>()

bool StrideTask::operator> ( const StrideTask rhs) const
inline

Checks for greater pass value.

Definition at line 39 of file PacketScheduler.cpp.

◆ set_rate()

void StrideTask::set_rate ( double  rate)
inline

Sets the ticket rate, which influences stride.

Definition at line 55 of file PacketScheduler.cpp.

Member Data Documentation

◆ operation

bool StrideTask::operation

the type of operation

Definition at line 85 of file PacketScheduler.cpp.

◆ pass

uint64_t StrideTask::pass

the current pass which determines next schedule

Definition at line 75 of file PacketScheduler.cpp.

◆ stride

uint64_t StrideTask::stride

the stride to take

Definition at line 70 of file PacketScheduler.cpp.

◆ tickets

uint64_t StrideTask::tickets

the number of tickets, which influences stride

Definition at line 80 of file PacketScheduler.cpp.


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