GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
Main Runnable of the go4 analysis. More...
#include <TGo4AnalysisMainRunnable.h>
Public Member Functions | |
TGo4AnalysisMainRunnable (const char *name, TGo4AnalysisClient *cli) | |
virtual | ~TGo4AnalysisMainRunnable () |
Int_t | PostRun (void *) override |
Function which is called once after the Run()method on threadstop. | |
Int_t | PreRun (void *) override |
Function which is called once before the Run() method on threadstart. | |
Int_t | Run (void *) override |
The working function which runs in the thread. | |
![]() | |
TGo4Runnable (const char *name, TGo4ThreadManager *man) | |
TGo4Runnable (const TGo4Runnable &right) | |
virtual | ~TGo4Runnable () |
TGo4Thread * | GetThread () const |
TGo4ThreadManager * | GetThreadManager () const |
void | SetThread (TGo4Thread *gthread) |
Static Public Attributes | |
static const UInt_t | fguPOLLINTERVAL =1000 |
frequency in ms for polling the run flag (server mode without command queue) | |
Private Member Functions | |
TGo4AnalysisMainRunnable () | |
Private Attributes | |
TGo4Analysis * | fxAnalysis {nullptr} |
1 | |
TGo4AnalysisClient * | fxAnalysisClient {nullptr} |
1 | |
Additional Inherited Members | |
![]() | |
TGo4Runnable () | |
virtual void | ThreadCatch (TGo4Exception &ex) |
catch for exceptions occurring in workfunc | |
virtual void | UnexpectedCatch () |
catch for all unexpected exceptions happening in workfunc | |
![]() | |
TGo4Thread * | fxGo4Thread {nullptr} |
Backlink to thread which runs this. | |
TGo4ThreadManager * | fxManager {nullptr} |
The threadmanager which is responsible for our thread. | |
Main Runnable of the go4 analysis.
Takes commands out of command queue and processes them, then acts on the analysis framework MainCycle method to process the analysis.
Definition at line 29 of file TGo4AnalysisMainRunnable.h.
TGo4AnalysisMainRunnable::TGo4AnalysisMainRunnable | ( | const char * | name, |
TGo4AnalysisClient * | cli ) |
Definition at line 35 of file TGo4AnalysisMainRunnable.cxx.
References TGo4Runnable::TGo4Runnable(), fxAnalysis, fxAnalysisClient, and TGo4AnalysisClient::GetAnalysis().
|
virtual |
Definition at line 42 of file TGo4AnalysisMainRunnable.cxx.
|
private |
|
overridevirtual |
Function which is called once after the Run()method on threadstop.
Reimplemented from TGo4Runnable.
Definition at line 46 of file TGo4AnalysisMainRunnable.cxx.
References fxAnalysis, and fxAnalysisClient.
|
overridevirtual |
Function which is called once before the Run() method on threadstart.
Reimplemented from TGo4Runnable.
Definition at line 57 of file TGo4AnalysisMainRunnable.cxx.
References GO4TRACE.
|
overridevirtual |
The working function which runs in the thread.
Implements TGo4Runnable.
Definition at line 66 of file TGo4AnalysisMainRunnable.cxx.
References fguPOLLINTERVAL, fxAnalysis, fxAnalysisClient, TGo4Task::Get_fgiTERMID(), TGo4Command::GetCommandID(), TGo4EventSourceException::GetErrMess(), TGo4Log::GetIgnoreLevel(), TGo4EventSourceException::GetSourceClass(), TGo4EventSourceException::GetSourceName(), TGo4Runnable::GetThread(), TGo4EventSourceException::Handle(), TGo4CommandInvoker::Instance(), TGo4CommandInvoker::Invoke(), TGo4Thread::Sleep(), TGo4Thread::Stop(), and TGo4LockGuard.
|
static |
frequency in ms for polling the run flag (server mode without command queue)
Definition at line 44 of file TGo4AnalysisMainRunnable.h.
Referenced by Run().
|
private |
1
0..1
Definition at line 50 of file TGo4AnalysisMainRunnable.h.
Referenced by TGo4AnalysisMainRunnable(), PostRun(), and Run().
|
private |
1
0..1
Definition at line 55 of file TGo4AnalysisMainRunnable.h.
Referenced by TGo4AnalysisMainRunnable(), PostRun(), and Run().