GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4TaskHandlerRunnable.h
Go to the documentation of this file.
1 // $Id: TGo4TaskHandlerRunnable.h 478 2009-10-29 12:26:09Z linev $
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 für 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 TGO4TASKHANDLERRUNNABLE_H
15 #define TGO4TASKHANDLERRUNNABLE_H
16 
17 #include "TGo4Runnable.h"
18 
19 class TGo4Socket;
20 class TGo4ThreadManager;
21 class TGo4TaskHandler;
22 class TGo4ObjectQueue;
23 class TGo4BufferQueue;
24 
32 
33  public:
34 
35  TGo4TaskHandlerRunnable(const char* name, TGo4ThreadManager* man, TGo4TaskHandler* hand, Bool_t receivermode=kTRUE);
36 
37  virtual ~TGo4TaskHandlerRunnable();
38 
39  virtual Int_t Run(void* ptr) =0;
40 
42 
43  protected:
44 
50  Bool_t CheckStopBuffer(TBuffer* buf, Int_t* result=0);
51 
54  Bool_t CheckTransportOpen();
55 
58 
63 
67 
70 
71  private:
73 };
74 
75 #endif //TGO4TASKHANDLERRUNNABLE_H
TGo4TaskHandler * GetTaskHandler()
Bool_t CheckStopBuffer(TBuffer *buf, Int_t *result=0)
virtual Int_t Run(void *ptr)=0