MADARA  3.2.3
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 11 of file PacketScheduler.cpp.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 17 of file PacketScheduler.cpp.

Member Function Documentation

void StrideTask::operator++ ( void  )
inline

Increases pass by stride.

Definition at line 49 of file PacketScheduler.cpp.

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

Checks for lower pass value.

Definition at line 25 of file PacketScheduler.cpp.

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

Checks for pass equality.

Definition at line 33 of file PacketScheduler.cpp.

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

Checks for greater pass value.

Definition at line 41 of file PacketScheduler.cpp.

void StrideTask::set_rate ( double  rate)
inline

Sets the ticket rate, which influences stride.

Definition at line 57 of file PacketScheduler.cpp.

Member Data Documentation

bool StrideTask::operation

the type of operation

Definition at line 87 of file PacketScheduler.cpp.

uint64_t StrideTask::pass

the current pass which determines next schedule

Definition at line 77 of file PacketScheduler.cpp.

uint64_t StrideTask::stride

the stride to take

Definition at line 72 of file PacketScheduler.cpp.

uint64_t StrideTask::tickets

the number of tickets, which influences stride

Definition at line 82 of file PacketScheduler.cpp.


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