Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
JobProducer Class Referenceabstract

#include <elm/sys/JobScheduler.h>

+ Inheritance diagram for 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

◆ ~JobProducer()

virtual ~JobProducer ( void  )
inlinevirtual

Member Function Documentation

◆ harvest()

void harvest ( Job job)
inlinevirtual

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 IteratorProducer< T, I >.

◆ next()

Job * next ( void  )
pure virtual

Get the next job to be processed.

Returns
Next job or null.

Implemented in IteratorProducer< T, I >.


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