EvolvingObjects
|
Functor (worker side) implementing the processing to do. More...
#include <eoMpi.h>
Public Member Functions | |
ProcessTaskFunction (ProcessTaskFunction< JobData > *w=0) |
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.