RaftLib  0.3a
C++ Stream Processing Template Library
Public Member Functions | List of all members
SystemSignalHandler Class Reference

Public Member Functions

void addHandler (const raft::signal signal, sighandler handler)
 
raft::kstatus callHandler (const raft::signal signal, FIFO &fifo, raft::kernel *kernel, void *data)
 

Member Function Documentation

void SystemSignalHandler::addHandler ( const raft::signal  signal,
sighandler  handler 
)

addHandler - adds the signal handler 'handler' to this container. If the handler already exists for that signal then the last one to get added supercedes it (i.e., we're relying on the base class to be called first and derived classes to potentially add newer handlers).

Parameters
signal- const raft::signal
handler- sighandler

Here is the caller graph for this function:

raft::kstatus SystemSignalHandler::callHandler ( const raft::signal  signal,
FIFO fifo,
raft::kernel kernel,
void *  data 
)

callHandler - calls the handler for the param signal, an exception is thrown if the signal doesn't have a handler and a sigterm is passed throughout the system.

Parameters
signal- const raft::signal
fifo- FIFO& current port that called the signal
kernel- raft::kernel*, currently called kernel
data- void*
Returns
raft::kstatus - returns whatever the handler says otherwise proceed
Exceptions
NoSignalHandlerFoundException

Here is the caller graph for this function:


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