TProcessExecutor(unsigned nWorkers=0)
Class constructor.
Namespace for new ROOT classes and functions.
int MPSend(TSocket *s, unsigned code)
Send a message with the specified code on the specified socket.
unsigned fNProcessed
number of arguments already passed to the workers
void ReplyToFuncResult(TSocket *s)
Reply to a worker who just sent a result.
a Map method with arguments is being executed
void ReplyToIdle(TSocket *s)
Reply to a worker who is idle.
Ask for a kFuncResult/kProcResult.
void Reset()
Reset TProcessExecutor's state.
a MapReduce method with arguments is being executed
Execute function with the argument contained in the message.
a Map method with no arguments is being executed
ETask fTaskType
the kind of task that is being executed, if any
no task is being executed
Used by the client to tell servers to shutdown.
unsigned fNToProcess
total number of arguments to pass to the workers
Base class for multiprocess applications' clients.
static constexpr double s
a MapReduce method with no arguments is being executed
Execute function without arguments.