GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
Replace exception. More...
#include <TGo4ReplaceException.h>
Protected Attributes | |
TGo4Runnable * | fxNewRunnable {nullptr} |
![]() | |
TGo4Runnable * | fxRunnable {nullptr} |
Link to the runnable connected with the thread (exception throwing runnable might simply pass its 'this' pointer as argument) | |
TGo4ThreadHandler * | fxThreadHandler {nullptr} |
Link to threadhandler associated with the runnable. | |
TString | fxThreadName |
Name of the TGo4Thread that shall be acted on. | |
![]() | |
TString | fxDescription |
Replace exception.
Exception with the effect of removing old TGo4Thread from TGo4ThreadHandler and creating and starting new TGo4Thread with new runnable fxNewRunnable. If threadname is not specified in ctor, the thread of the first runnable given (usually the calling runnable) is replaced; if new runnable is not given, the thread of the calling runnable will be removed and a new thread with the calling runnable will be created, added to the handler list and started
Definition at line 41 of file TGo4ReplaceException.h.
|
delete |
References TGo4ReplaceException().
Referenced by TGo4ReplaceException(), TGo4ReplaceException(), and operator=().
TGo4ReplaceException::TGo4ReplaceException | ( | const TGo4ReplaceException & | right | ) |
Definition at line 23 of file TGo4ReplaceException.cxx.
References TGo4ReplaceException(), TGo4ThreadException::TGo4ThreadException(), fxNewRunnable, and GO4TRACE.
TGo4ReplaceException::TGo4ReplaceException | ( | TGo4Runnable * | runnable, |
TGo4Runnable * | newrunnable = nullptr, | ||
const char * | oldthreadname = nullptr ) |
Definition at line 30 of file TGo4ReplaceException.cxx.
References TGo4ThreadException::TGo4ThreadException(), TGo4Exception::fxDescription, fxNewRunnable, and GO4TRACE.
|
virtual |
Definition at line 46 of file TGo4ReplaceException.cxx.
References GO4TRACE.
|
overridevirtual |
This is a default handler function for the respective exception type.
Implements TGo4ThreadException.
Definition at line 62 of file TGo4ReplaceException.cxx.
References fxNewRunnable, TGo4ThreadException::fxRunnable, TGo4ThreadException::fxThreadHandler, TGo4ThreadException::GetThreadName(), and GO4TRACE.
TGo4ReplaceException & TGo4ReplaceException::operator= | ( | const TGo4ReplaceException & | right | ) |
Definition at line 52 of file TGo4ReplaceException.cxx.
References TGo4ReplaceException(), fxNewRunnable, GO4TRACE, and TGo4ThreadException::operator=().
|
protected |
Definition at line 56 of file TGo4ReplaceException.h.
Referenced by TGo4ReplaceException(), TGo4ReplaceException(), Handle(), and operator=().