BoilerPlate: Reusable CORBA |
#include <SignalController.h>
A system singleton for registering SignalStrategies. This single instance is available from OrbInit. SignalStrategies are usually registered from the application main line. However, the SignalController is also available via the SignalController::instance static method throughout the life of the application.
OrbInit should be the only owner of the SignalController. It is not necessary for a user to instantiate it.
Public Member Functions | |
SignalController (SysHook &mgt_hook) | |
~SignalController () | |
SignalStrategy * | addSignalStrategy (int signo, SignalStrategy *strat) |
SignalStrategy * | removeSignalStrategy (int signo) |
Static Public Member Functions | |
SignalController & | instance () throw (BoilerPlate::IllegalStateException) |
|
ctor
|
|
dtor Note that the SignalController should not be inherited |
|
Add a concrete signal strategy to the map of strategies The new strategy will be registered using sigaction. The caller must capture the returning value or a memory leak will occur. If the map's slot for the signal was previously empty the caller will get a null pointer. The caller is the new owner of the memory
|
|
A static accessor for global access
|
|
Remove a strategy from the map The map's slot for this signal number will be set to null
|
Copyright © BoilerPlate.org | Generated on Tue Nov 30 16:22:34 2004 for BoilerPlate by 1.3.7 |