IBR-DTNSuite
0.12
|
#include <SignalHandler.h>
Public Member Functions | |
SignalHandler (void(*handler)(int)) | |
virtual | ~SignalHandler () |
void | initialize () |
void | handle (int signal) |
virtual void | run (void) throw () |
Protected Member Functions | |
virtual void | __cancellation () throw () |
Additional Inherited Members | |
Private Member Functions inherited from ibrcommon::JoinableThread | |
virtual | ~JoinableThread ()=0 |
void | join (void) throw (ThreadException) |
bool | isRunning (void) |
void | start (int priority=0) throw (ThreadException) |
void | stop () throw () |
JoinableThread (size_t size=DEFAULT_STACKSIZE) | |
Definition at line 31 of file SignalHandler.h.
ibrcommon::SignalHandler::SignalHandler | ( | void(*)(int) | handler) |
Definition at line 33 of file SignalHandler.cpp.
|
virtual |
Definition at line 38 of file SignalHandler.cpp.
References ibrcommon::JoinableThread::join(), and ibrcommon::JoinableThread::stop().
|
protectedvirtual |
This method is call when the thread is stopped.
Implements ibrcommon::Thread.
Definition at line 65 of file SignalHandler.cpp.
References ibrcommon::Queue< T >::abort().
void ibrcommon::SignalHandler::handle | ( | int | signal) |
register to a given process signal
Definition at line 49 of file SignalHandler.cpp.
Referenced by __daemon_run(), and main().
void ibrcommon::SignalHandler::initialize | ( | ) |
initializes the signal handler process
Definition at line 44 of file SignalHandler.cpp.
References ibrcommon::JoinableThread::start().
Referenced by __daemon_run(), and main().
|
virtual |
Abstract interface for thread context run method.
Implements ibrcommon::Thread.
Definition at line 55 of file SignalHandler.cpp.
References ibrcommon::Queue< T >::getnpop().