ROOT
6.06/09
Reference Guide
|
Definition at line 129 of file TPoolWorker.h.
Public Member Functions | |
TPoolWorker (F func, const std::vector< T > &args) | |
~TPoolWorker () | |
void | HandleInput (MPCodeBufPair &msg) |
Handle a message with an EMPCode. More... | |
Public Member Functions inherited from TMPWorker | |
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... | |
std::vector< T > | fArgs |
a vector containing the arguments that must be passed to fFunc More... | |
#include <TPoolWorker.h>
|
inline |
Definition at line 131 of file TPoolWorker.h.
|
inline |
Definition at line 132 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 133 of file TPoolWorker.h.
|
private |
a vector containing the arguments that must be passed to fFunc
Definition at line 150 of file TPoolWorker.h.
|
private |
the function to be executed
Definition at line 149 of file TPoolWorker.h.