#include <TGo4Runnable.h>
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.
Definition at line 34 of file TGo4Runnable.h.
TGo4Runnable::TGo4Runnable | ( | const TGo4Runnable & | right | ) |
Definition at line 29 of file TGo4Runnable.cxx.
TGo4Runnable::TGo4Runnable | ( | const char * | name, | |
TGo4ThreadManager * | man | |||
) |
Definition at line 37 of file TGo4Runnable.cxx.
TGo4Runnable::~TGo4Runnable | ( | ) | [virtual] |
Definition at line 44 of file TGo4Runnable.cxx.
TGo4Runnable::TGo4Runnable | ( | ) | [protected] |
Definition at line 22 of file TGo4Runnable.cxx.
void TGo4Runnable::SetThread | ( | TGo4Thread * | gthread | ) | [inline] |
Definition at line 44 of file TGo4Runnable.h.
TGo4Thread* TGo4Runnable::GetThread | ( | ) | const [inline] |
Definition at line 46 of file TGo4Runnable.h.
TGo4ThreadManager* TGo4Runnable::GetThreadManager | ( | ) | const [inline] |
Definition at line 48 of file TGo4Runnable.h.
virtual Int_t TGo4Runnable::Run | ( | void * | ptr | ) | [protected, pure virtual] |
The working function which runs in the thread.
Implemented in TGo4CommandRunnable, TGo4ConnectorRunnable, TGo4DataRunnable, TGo4LocalCommandRunnable, TGo4StatusRunnable, TGo4TaskHandlerRunnable, TGo4ControllerRunnable, TGo4LoggingRunnable, TGo4MainRunnable, TGo4WatchRunnable, and TGo4TestRunnable.
Int_t TGo4Runnable::PreRun | ( | void * | ptr | ) | [protected, virtual] |
Function which is called once before the Run() method on threadstart.
Definition at line 69 of file TGo4Runnable.cxx.
Int_t TGo4Runnable::PostRun | ( | void * | ptr | ) | [protected, virtual] |
Function which is called once after the Run()method on threadstop.
Definition at line 77 of file TGo4Runnable.cxx.
void TGo4Runnable::ThreadCatch | ( | TGo4Exception & | ex | ) | [protected, virtual] |
catch for exceptions occuring in workfunc
Reimplemented in TGo4TestRunnable.
Definition at line 49 of file TGo4Runnable.cxx.
void TGo4Runnable::UnexpectedCatch | ( | ) | [protected, virtual] |
catch for all unexcpected exceptions happening in workfunc
Reimplemented in TGo4TestRunnable.
Definition at line 58 of file TGo4Runnable.cxx.
friend class TGo4Thread [friend] |
Definition at line 35 of file TGo4Runnable.h.
TGo4ThreadManager* TGo4Runnable::fxManager [protected] |
The threadmanager which is responsible for our thread.
1 0..*
Definition at line 72 of file TGo4Runnable.h.
TGo4Thread* TGo4Runnable::fxGo4Thread [protected] |