Orxonox
0.0.5 Codename: Arcturus
|
The SignalHandler is used to catch signals like SIGSEGV and write a backtrace to the logfile. More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/util/SignalHandler.h>
Public Member Functions | |
void | doCatch (const std::string &appName, const std::string &filename) |
register signal handlers for SIGSEGV and SIGABRT More... | |
void | dontCatch () |
restore previous signal handlers More... | |
void | registerCallback (SignalCallback cb, void *someData) |
Private Member Functions | |
void | catchSignal (int sig) |
catch signal sig More... | |
Static Private Member Functions | |
static void | sigHandler (int sig) |
sigHandler is called when receiving signals More... | |
Private Attributes | |
std::string | appName |
SignalCallbackList | callbackList |
std::string | filename |
SignalRecList | sigRecList |
Static Private Attributes | |
static SignalHandler * | singletonPtr_s = nullptr |
Friends | |
class | Singleton< SignalHandler > |
Additional Inherited Members | |
Static Public Member Functions inherited from orxonox::Singleton< T > | |
static bool | exists () |
Tells whether the singleton has been created. More... | |
static T & | getInstance () |
Returns a reference to the singleton instance. More... | |
Protected Member Functions inherited from orxonox::Singleton< T > | |
Singleton () | |
Constructor sets the singleton instance pointer. More... | |
virtual | ~Singleton () |
Destructor resets the singleton instance pointer. More... | |
The SignalHandler is used to catch signals like SIGSEGV and write a backtrace to the logfile.
|
private |
catch signal sig
sig | signal to catch |
void orxonox::SignalHandler::doCatch | ( | const std::string & | appName, |
const std::string & | filename | ||
) |
register signal handlers for SIGSEGV and SIGABRT
appName | path to executable eg argv[0] |
filename | filename to append backtrace to |
void orxonox::SignalHandler::dontCatch | ( | ) |
restore previous signal handlers
void orxonox::SignalHandler::registerCallback | ( | SignalCallback | cb, |
void * | someData | ||
) |
|
staticprivate |
sigHandler is called when receiving signals
sig |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |