Brief description of class still missing. More...
#include <CubeDaemonApplication.h>
Public Member Functions | |
| virtual void | close () |
| CubeDaemonApplication (int &argc, char **argv, ApplicationHelp *(*help)(), bool reportBugs=true) | |
Static Public Member Functions | |
| static CubeDevice * | cubeThread () |
| static void | setCubeThread (CubeDevice *s) |
Protected Member Functions | |
| virtual void | installInterruptSignals () |
Static Protected Member Functions | |
| static void | childInterrupted (int signum) |
Brief description of class still missing.
Full description of class still missing
| CubeDaemonApplication::CubeDaemonApplication | ( | int & | argc, |
| char ** | argv, | ||
| ApplicationHelp *(*)() | help, | ||
| bool | reportBugs = true |
||
| ) |
Description of constructor still missing
: DaemonApplication(argc, argv, help, reportBugs) { _cubeThread=0; }
| void CubeDaemonApplication::childInterrupted | ( | int | signum | ) | [static, protected] |
Reimplemented from GpCoreTools::DaemonApplication.
References GpCoreTools::PThread::stop().
Referenced by installInterruptSignals().
{
// Do not use TRACE here because it uses a mutex which can be locked while this function
// is called inside a signal exception.
if(_cubeThread) {
_cubeThread->stop();
}
DaemonApplication::childInterrupted(signum);
}
| void CubeDaemonApplication::close | ( | ) | [virtual] |
Description of destructor still missing
Reimplemented from GpCoreTools::DaemonApplication.
References GpCoreTools::PThread::wait().
Referenced by main().
{
if(_cubeThread) {
_cubeThread->wait();
delete _cubeThread;
_cubeThread=0;
}
DaemonApplication::close();
}
| static CubeDevice* CubeDaemonApplication::cubeThread | ( | ) | [inline, static] |
Referenced by main().
{return _cubeThread;}
| void CubeDaemonApplication::installInterruptSignals | ( | ) | [protected, virtual] |
Reimplemented from GpCoreTools::DaemonApplication.
References childInterrupted().
{
signal(SIGTERM, childInterrupted);
signal(SIGINT, childInterrupted);
}
| static void CubeDaemonApplication::setCubeThread | ( | CubeDevice * | s | ) | [inline, static] |
Referenced by main().
{_cubeThread=s;}