![]() |
ROOT
6.06/09
Reference Guide
|
Definition at line 88 of file TPoolWorker.h.
Public Member Functions | |
TPoolWorker (F func, R redfunc) | |
~TPoolWorker () | |
void | HandleInput (MPCodeBufPair &msg) |
Handle a message with an EMPCode. More... | |
![]() | |
TMPWorker () | |
Class constructor. More... | |
virtual | ~TMPWorker () |
TMPWorker (const TMPWorker &)=delete | |
TMPWorker & | operator= (const TMPWorker &)=delete |
virtual void | Init (int fd, unsigned workerN) |
This method is called by children processes right after forking. More... | |
void | Run () |
TSocket * | GetSocket () |
pid_t | GetPid () |
unsigned | GetNWorker () const |
Private Attributes | |
F | fFunc |
the function to be executed More... | |
R | fRedFunc |
the reduce function More... | |
decltype(fFunc()) | fReducedResult |
the result of the execution More... | |
bool | fCanReduce |
true if fReducedResult can be reduced with a new result, false until we have produced one result More... | |
#include <TPoolWorker.h>
|
inline |
Definition at line 90 of file TPoolWorker.h.
|
inline |
Definition at line 94 of file TPoolWorker.h.
|
inlinevirtual |
Handle a message with an EMPCode.
This method is called upon receiving a message with a code >= 1000 (i.e. EMPCode). It handles the most generic types of messages.
Classes inheriting from TMPWorker should implement their own HandleInput function, that should be able to handle codes specific to that application.
The appropriate version of the HandleInput method (TMPWorker's or the overriding version) is automatically called depending on the message code.
msg | Execute instructions received from a TProcPool client |
Reimplemented from TMPWorker.
Definition at line 96 of file TPoolWorker.h.
|
private |
true if fReducedResult can be reduced with a new result, false until we have produced one result
Definition at line 125 of file TPoolWorker.h.
|
private |
the function to be executed
Definition at line 122 of file TPoolWorker.h.
|
private |
the reduce function
Definition at line 123 of file TPoolWorker.h.
|
private |
the result of the execution
Definition at line 124 of file TPoolWorker.h.