GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4ControllerRunnable Class Reference

runnable performing the main action of example client task: getting commands out of command queue, sending objects into data queue More...

#include <TGo4ControllerRunnable.h>

+ Inheritance diagram for TGo4ControllerRunnable:

Public Member Functions

 TGo4ControllerRunnable (const char *name, TGo4ExampleServer *serv)
 
virtual ~TGo4ControllerRunnable ()
 
Int_t Run (void *) override
 The working function which runs in the thread.
 
- Public Member Functions inherited from TGo4Runnable
 TGo4Runnable (const char *name, TGo4ThreadManager *man)
 
 TGo4Runnable (const TGo4Runnable &right)
 
virtual ~TGo4Runnable ()
 
TGo4ThreadGetThread () const
 
TGo4ThreadManagerGetThreadManager () const
 
void SetThread (TGo4Thread *gthread)
 

Static Public Attributes

static const UInt_t fguCOMMANDINTERVAL =10000
 frequency in ms to acquire new command from controller instance
 

Private Member Functions

 TGo4ControllerRunnable ()
 

Private Attributes

TGo4ExampleControllerfxController {nullptr}
 1
 
TGo4ExampleServerfxServer {nullptr}
 

Additional Inherited Members

- Protected Member Functions inherited from TGo4Runnable
 TGo4Runnable ()
 
virtual Int_t PostRun (void *ptr)
 Function which is called once after the Run()method on threadstop.
 
virtual Int_t PreRun (void *ptr)
 Function which is called once before the Run() method on threadstart.
 
virtual void ThreadCatch (TGo4Exception &ex)
 catch for exceptions occurring in workfunc
 
virtual void UnexpectedCatch ()
 catch for all unexpected exceptions happening in workfunc
 
- Protected Attributes inherited from TGo4Runnable
TGo4ThreadfxGo4Thread {nullptr}
 Backlink to thread which runs this.
 
TGo4ThreadManagerfxManager {nullptr}
 The threadmanager which is responsible for our thread.
 

Detailed Description

runnable performing the main action of example client task: getting commands out of command queue, sending objects into data queue

Definition at line 27 of file TGo4ControllerRunnable.h.

Constructor & Destructor Documentation

◆ TGo4ControllerRunnable() [1/2]

TGo4ControllerRunnable::TGo4ControllerRunnable ( const char * name,
TGo4ExampleServer * serv )

◆ ~TGo4ControllerRunnable()

TGo4ControllerRunnable::~TGo4ControllerRunnable ( )
virtual

Definition at line 30 of file TGo4ControllerRunnable.cxx.

References GO4TRACE.

◆ TGo4ControllerRunnable() [2/2]

TGo4ControllerRunnable::TGo4ControllerRunnable ( )
private

Member Function Documentation

◆ Run()

Int_t TGo4ControllerRunnable::Run ( void * ptr)
overridevirtual

The working function which runs in the thread.

Implements TGo4Runnable.

Definition at line 35 of file TGo4ControllerRunnable.cxx.

References fguCOMMANDINTERVAL, fxController, fxServer, GO4TRACE, and TGo4Thread::Sleep().

Field Documentation

◆ fguCOMMANDINTERVAL

const UInt_t TGo4ControllerRunnable::fguCOMMANDINTERVAL =10000
static

frequency in ms to acquire new command from controller instance

Definition at line 38 of file TGo4ControllerRunnable.h.

Referenced by Run().

◆ fxController

TGo4ExampleController* TGo4ControllerRunnable::fxController {nullptr}
private

1

Definition at line 43 of file TGo4ControllerRunnable.h.

Referenced by TGo4ControllerRunnable(), and Run().

◆ fxServer

TGo4ExampleServer* TGo4ControllerRunnable::fxServer {nullptr}
private

Definition at line 44 of file TGo4ControllerRunnable.h.

Referenced by TGo4ControllerRunnable(), and Run().


The documentation for this class was generated from the following files: