GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4CommandRunnable.h
Go to the documentation of this file.
1// $Id$
2//-----------------------------------------------------------------------
3// The GSI Online Offline Object Oriented (Go4) Project
4// Experiment Data Processing at EE department, GSI
5//-----------------------------------------------------------------------
6// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7// Planckstr. 1, 64291 Darmstadt, Germany
8// Contact: http://go4.gsi.de
9//-----------------------------------------------------------------------
10// This software can be used under the license agreements as stated
11// in Go4License.txt file which is part of the distribution.
12//-----------------------------------------------------------------------
13
14#ifndef TGO4COMMANDRUNNABLE_H
15#define TGO4COMMANDRUNNABLE_H
16
18
20class TGo4TaskHandler;
22
32
34 public:
35
36 TGo4CommandRunnable(const char *name, TGo4ThreadManager *man, TGo4TaskHandler *hand, Bool_t receivermode=kTRUE);
37
38 virtual ~TGo4CommandRunnable();
39
40 Int_t Run(void *ptr) override;
41
42 private:
44
47 void RedirectIO();
48
55};
56
57#endif //TGO4COMMANDRUNNABLE_H
Class that knows Command Object; When Client gets the Command it is passed to the Invoker who sets th...
Int_t Run(void *ptr) override
The working function which runs in the thread.
void RedirectIO()
for error in socket: redirect std::cout/std::cerr to dummy buffer to avoid trouble if client is runni...
TGo4CommandInvoker * fxInvoker
client mode: link to external (static) invoker singleton, that is used to execute the async commands ...
TGo4CommandRunnable(const char *name, TGo4ThreadManager *man, TGo4TaskHandler *hand, Bool_t receivermode=kTRUE)
TGo4TaskHandlerRunnable(const char *name, TGo4ThreadManager *man, TGo4TaskHandler *hand, Bool_t receivermode=kTRUE)
This class is responsible for the interconnection of two tasks: provided are three communication chan...
Go4 thread manager.