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

Runnable which executes all local commands on the server side to prevent gui from blocking. More...

#include <TGo4LocalCommandRunnable.h>

+ Inheritance diagram for TGo4LocalCommandRunnable:

Public Member Functions

 TGo4LocalCommandRunnable (const char *name, TGo4Task *task)
 
virtual ~TGo4LocalCommandRunnable ()
 
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)
 

Private Member Functions

 TGo4LocalCommandRunnable ()
 

Private Attributes

TGo4TaskfxLocalTask {nullptr}
 1
 

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 which executes all local commands on the server side to prevent gui from blocking.

Will listen to a server side command queue and invokes command by server command invoker. Method SubmitCommand will either send all Callback commands to current client (remote command), or put it into the local queue. Note that local commands would also be possible on the client side now, since local command queue and this thread is owned by TGo4Task baseclass

Definition at line 32 of file TGo4LocalCommandRunnable.h.

Constructor & Destructor Documentation

◆ TGo4LocalCommandRunnable() [1/2]

TGo4LocalCommandRunnable::TGo4LocalCommandRunnable ( const char * name,
TGo4Task * task )

Definition at line 28 of file TGo4LocalCommandRunnable.cxx.

References TGo4Runnable::TGo4Runnable(), and fxLocalTask.

◆ ~TGo4LocalCommandRunnable()

TGo4LocalCommandRunnable::~TGo4LocalCommandRunnable ( )
virtual

Definition at line 34 of file TGo4LocalCommandRunnable.cxx.

◆ TGo4LocalCommandRunnable() [2/2]

TGo4LocalCommandRunnable::TGo4LocalCommandRunnable ( )
private

Definition at line 22 of file TGo4LocalCommandRunnable.cxx.

References TGo4Runnable::TGo4Runnable(), and fxLocalTask.

Member Function Documentation

◆ Run()

Int_t TGo4LocalCommandRunnable::Run ( void * ptr)
overridevirtual

Field Documentation

◆ fxLocalTask

TGo4Task* TGo4LocalCommandRunnable::fxLocalTask {nullptr}
private

1

Definition at line 49 of file TGo4LocalCommandRunnable.h.

Referenced by TGo4LocalCommandRunnable(), TGo4LocalCommandRunnable(), and Run().


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