In file /home/eternity/Source/Common/SignalManager/H/signalManager.h:

class SignalManager : public Runable

Signal manger class

Inheritance:

SignalManager < Runable < Debugable


Public Methods

void* SignalManager::Run (void *)
The main loop for Signal Manager thread
SignalManager::SignalManager (LogFile * signalManagerLogFile)
Signal Manager constructor
SignalManager::~SignalManager ()
Signal Manager desstructor

Public

methods
SignalManager (LogFile * signalManagerLogFile)
Constructor
void* Run (void *)
Main thread method

Private

attributes
pthread_mutex_t mutex
Synchronization

Inherited from Runable:

Public Methods

void Runable::MaskAllSignals()
Runable::Runable(LogFile * logFile)

Inherited from Debugable:

Public Methods

string* Debugable::CreateString(char *firstStr, int firstInt, int secondInt)
Debugable::Debugable(LogFile * debugLogFile)
int Debugable::SetDebugOptions(int newLogOptions)
void Debugable::SetLogFile(LogFile *aLogFile)
void Debugable::WriteString(LogLevel debugLevel, char * format, ...)
Debugable::~Debugable()

Documentation

Signal manger class. Implements system specific signal handling and dispatching signals to appropriate threads.
methods

SignalManager(LogFile * signalManagerLogFile)
Constructor

void* Run(void *)
Main thread method

attributes

pthread_mutex_t mutex
Synchronization

void* SignalManager::Run(void *)
The main loop for Signal Manager thread. Implementation of SignalManager thread, this is just a template here, we intercept SIGALRM signal for now only, to show how to do it.

Because lacking sigwait() function call, we have to do signal handling using classical handlers, so we twice lock mutex to fall asleep for ever.

Returns:
void *
Parameters:
void - *
Author:
Pechy
See Also:
thread discussion

SignalManager::SignalManager(LogFile * signalManagerLogFile)
Signal Manager constructor. Just initializes mutex.
Parameters:
signalManagerLogFile - Log file.
Author:
Pechy
See Also:
thread discussion

SignalManager::~SignalManager()
Signal Manager desstructor.
Returns:
co
Parameters:
parametr -
Author:
jmeno
See Also:
SignalManager()


This class has no child classes.
Author:
Pechy
See Also:
Scheduler Killer

alphabetic index hierarchy of classes


generated by doc++