EvolvingObjects
eo::mpi::ProcessTaskFunction< JobData > Struct Template Reference

Functor (worker side) implementing the processing to do. More...

#include <eoMpi.h>

Inheritance diagram for eo::mpi::ProcessTaskFunction< JobData >:
eoF< void > eo::mpi::SharedDataFunction< JobData, ProcessTaskFunction< JobData > > eoFunctorBase

List of all members.

Public Member Functions

 ProcessTaskFunction (ProcessTaskFunction< JobData > *w=0)

Detailed Description

template<typename JobData>
struct eo::mpi::ProcessTaskFunction< JobData >

Functor (worker side) implementing the processing to do.

This is where the real computation happen. Whenever the master sends the command "Continue" to workers, which indicates the worker will receive a task, the worker calls this functor. The user has to explicitly retrieve the data, handle it and transmit it, processed, back to the master. If the worker does not send any data back to the master, the latter will consider the worker isn't done and a deadlock could occur.

This is a functor implementing void operator()(), and also a shared data function, containing wrapper on its own type.

Definition at line 347 of file eoMpi.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends