|
GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
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 () |
| TGo4Thread * | GetThread () const |
| TGo4ThreadManager * | GetThreadManager () const |
| void | SetThread (TGo4Thread *gthread) |
Private Member Functions | |
| TGo4LocalCommandRunnable () | |
Private Attributes | |
| TGo4Task * | fxLocalTask {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 | |
| TGo4Thread * | fxGo4Thread {nullptr} |
| Backlink to thread which runs this. | |
| TGo4ThreadManager * | fxManager {nullptr} |
| The threadmanager which is responsible for our thread. | |
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.
| TGo4LocalCommandRunnable::TGo4LocalCommandRunnable | ( | const char * | name, |
| TGo4Task * | task ) |
Definition at line 28 of file TGo4LocalCommandRunnable.cxx.
References TGo4Runnable::TGo4Runnable(), and fxLocalTask.
|
virtual |
Definition at line 34 of file TGo4LocalCommandRunnable.cxx.
|
private |
Definition at line 22 of file TGo4LocalCommandRunnable.cxx.
References TGo4Runnable::TGo4Runnable(), and fxLocalTask.
|
overridevirtual |
The working function which runs in the thread.
Implements TGo4Runnable.
Definition at line 38 of file TGo4LocalCommandRunnable.cxx.
References fxLocalTask, TGo4Task::Get_fgiTERMID(), TGo4Command::GetCommandID(), TGo4Runnable::GetThread(), TGo4CommandInvoker::Instance(), TGo4CommandInvoker::Invoke(), TGo4Thread::Stop(), and TGo4ObjectQueue::WaitObject().
|
private |
1
Definition at line 49 of file TGo4LocalCommandRunnable.h.
Referenced by TGo4LocalCommandRunnable(), TGo4LocalCommandRunnable(), and Run().