#include <TGo4Runnable.h>
Inheritance diagram for TGo4Runnable:
Public Member Functions | |
TGo4Runnable (const TGo4Runnable &right) | |
TGo4Runnable (const char *name, TGo4ThreadManager *man) | |
virtual | ~TGo4Runnable () |
void | SetThread (TGo4Thread *gthread) |
TGo4Thread * | GetThread () const |
TGo4ThreadManager * | GetThreadManager () const |
Protected Member Functions | |
TGo4Runnable () | |
virtual Int_t | Run (void *ptr)=0 |
The working function which runs in the thread. | |
virtual Int_t | PreRun (void *ptr) |
Function which is called once before the Run() method on threadstart. | |
virtual Int_t | PostRun (void *ptr) |
Function which is called once after the Run()method on threadstop. | |
virtual void | ThreadCatch (TGo4Exception &ex) |
catch for exceptions occuring in workfunc | |
virtual void | UnexpectedCatch () |
catch for all unexcpected exceptions happening in workfunc | |
Protected Attributes | |
TGo4ThreadManager * | fxManager |
The threadmanager which is responsible for our thread. | |
TGo4Thread * | fxGo4Thread |
Backlink to thread which runs this. | |
Friends | |
class | TGo4Thread |
Virtual method Run() is working in the thread, this must be overridden by the user runnables.
Go4 project-DVEE-GSI Darmstadt
Germany
Definition at line 36 of file TGo4Runnable.h.
|
Definition at line 31 of file TGo4Runnable.cxx. References TRACE. |
|
Definition at line 39 of file TGo4Runnable.cxx. |
|
Definition at line 46 of file TGo4Runnable.cxx. References TRACE. |
|
Definition at line 24 of file TGo4Runnable.cxx. |
|
Definition at line 46 of file TGo4Runnable.h. References fxGo4Thread. Referenced by TGo4Thread::TGo4Thread(). |
|
|
Definition at line 50 of file TGo4Runnable.h. References fxManager. Referenced by TGo4TerminateException::TGo4TerminateException(), and TGo4ThreadException::TGo4ThreadException(). |
|
The working function which runs in the thread.
Implemented in TGo4AnalysisMainRunnable, TGo4AnalysisWatchRunnable, TGo4HisConnectorRunnable, TGo4ObjConnectorRunnable, TGo4CommandRunnable, TGo4ConnectorRunnable, TGo4DataRunnable, TGo4LocalCommandRunnable, TGo4StatusRunnable, TGo4TaskHandlerRunnable, TGo4ControllerRunnable, TGo4LoggingRunnable, TGo4MainRunnable, TGo4WatchRunnable, and TGo4TestRunnable. Referenced by TGo4Thread::Threadfunc(). |
|
Function which is called once before the Run() method on threadstart.
Reimplemented in TGo4AnalysisMainRunnable. Definition at line 71 of file TGo4Runnable.cxx. References TGo4Log::Debug(), and TRACE. Referenced by TGo4Thread::Threadfunc(). |
|
Function which is called once after the Run()method on threadstop.
Reimplemented in TGo4AnalysisMainRunnable. Definition at line 79 of file TGo4Runnable.cxx. References TGo4Log::Debug(), and TRACE. Referenced by TGo4Thread::Threadfunc(). |
|
catch for exceptions occuring in workfunc
Reimplemented in TGo4TestRunnable. Definition at line 51 of file TGo4Runnable.cxx. References TGo4Log::Debug(), fxGo4Thread, TGo4Thread::GetPID(), TGo4Exception::Handle(), TRACE, and TGo4Exception::What(). Referenced by TGo4TestRunnable::ThreadCatch(), and TGo4Thread::Threadfunc(). |
|
catch for all unexcpected exceptions happening in workfunc
Reimplemented in TGo4TestRunnable. Definition at line 60 of file TGo4Runnable.cxx. References TGo4Log::Debug(), fxGo4Thread, fxManager, TGo4Thread::GetPID(), TGo4ThreadManager::Terminate(), and TRACE. Referenced by TGo4TestRunnable::UnexpectedCatch(). |
|
Definition at line 37 of file TGo4Runnable.h. Referenced by TGo4TestRunnable::Run(). |
|
The threadmanager which is responsible for our thread. 1 0..* Definition at line 74 of file TGo4Runnable.h. Referenced by GetThreadManager(), TGo4TestRunnable::Run(), TGo4WatchRunnable::Run(), TGo4MainRunnable::Run(), TGo4StatusRunnable::Run(), TGo4DataRunnable::Run(), TGo4CommandRunnable::Run(), TGo4Runnable(), and UnexpectedCatch(). |
|
Backlink to thread which runs this. 1 1 Definition at line 79 of file TGo4Runnable.h. Referenced by GetThread(), TGo4TestRunnable::Run(), TGo4ConnectorRunnable::Run(), TGo4ObjConnectorRunnable::Run(), SetThread(), ThreadCatch(), and UnexpectedCatch(). |