yat  0.21pre
Public Member Functions | Friends | List of all members
theplu::yat::utility::Scheduler::Job Class Referenceabstract

#include <yat/utility/Scheduler.h>

Public Member Functions

 Job (unsigned int prio=0)
 constructor More...
 
virtual ~Job (void)
 destructor
 
unsigned int priority (void) const
 
virtual void operator() (void)=0
 

Friends

class Scheduler
 
class JobHandler
 

Detailed Description

Base class that defines the interface for a Job

Constructor & Destructor Documentation

◆ Job()

theplu::yat::utility::Scheduler::Job::Job ( unsigned int  prio = 0)
explicit

constructor

Parameters
priosets the priority. Jobs with greater priority are run before jobs with lower priority (when possible).

Member Function Documentation

◆ operator()()

virtual void theplu::yat::utility::Scheduler::Job::operator() ( void  )
pure virtual

This function defines the work done in thread.

◆ priority()

unsigned int theplu::yat::utility::Scheduler::Job::priority ( void  ) const

Jobs with greater priority are run before Jobs with less priority.


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

Generated on Wed Jan 25 2023 03:34:29 for yat by  doxygen 1.8.14