IBR-DTNSuite  0.12
ibrcommon::SignalHandler Class Reference

#include <SignalHandler.h>

Inheritance diagram for ibrcommon::SignalHandler:
Inheritance graph
Collaboration diagram for ibrcommon::SignalHandler:
Collaboration graph

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)
 

Detailed Description

Definition at line 31 of file SignalHandler.h.

Constructor & Destructor Documentation

ibrcommon::SignalHandler::SignalHandler ( void(*)(int)  handler)

Definition at line 33 of file SignalHandler.cpp.

ibrcommon::SignalHandler::~SignalHandler ( )
virtual

Definition at line 38 of file SignalHandler.cpp.

References ibrcommon::JoinableThread::join(), and ibrcommon::JoinableThread::stop().

Here is the call graph for this function:

Member Function Documentation

void ibrcommon::SignalHandler::__cancellation ( )
throw (
)
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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

void ibrcommon::SignalHandler::run ( void  )
throw (
)
virtual

Abstract interface for thread context run method.

Implements ibrcommon::Thread.

Definition at line 55 of file SignalHandler.cpp.

References ibrcommon::Queue< T >::getnpop().

Here is the call graph for this function:


The documentation for this class was generated from the following files: