Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::sys::JobProducer Class Referenceabstract

#include <elm/sys/JobScheduler.h>

+ Inheritance diagram for elm::sys::JobProducer:

Public Member Functions

virtual ~JobProducer (void)
 
virtual Jobnext (void)=0
 
virtual void harvest (Job *job)
 

Detailed Description

Interface used by the sys::JobSheduler class to obtain the list of jobs to execute. When a new job is needed, the method next() is called and the processing stops when a null pointer is returned. Each time a job is ended, harvest() method is called in an exclusive way to exploit results of the job.

Constructor & Destructor Documentation

virtual elm::sys::JobProducer::~JobProducer ( void  )
virtual

Member Function Documentation

void elm::sys::JobProducer::harvest ( Job job)
virtual

Called in a mutual exclusive way by the thread that performed the job to let the used process the result of the job.

Reimplemented in elm::sys::IteratorProducer< T, I >.

Job * elm::sys::JobProducer::next ( void  )
pure virtual

Get the next job to be processed.

Returns
Next job or null.

Implemented in elm::sys::IteratorProducer< T, I >.


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