ACE_Sig_Handlers Class ReferenceThis is an alternative signal handling dispatcher for ACE. It allows a list of signal handlers to be registered for each signal. It also makes SA_RESTART the default mode. More...
Inheritance diagram for ACE_Sig_Handlers:
![]()
Collaboration diagram for ACE_Sig_Handlers:
![]()
Detailed DescriptionThis is an alternative signal handling dispatcher for ACE. It allows a list of signal handlers to be registered for each signal. It also makes SA_RESTART the default mode.Using this class a program can register one or more ACE_Event_Handler with the ACE_Sig_Handler in order to handle a designated signum. When a signal occurs that corresponds to this signum, the <handle_signal> methods of all the registered ACE_Event_Handlers are invoked automatically. Member Function Documentation
Add a new ACE_Event_Handler and a new sigaction associated with signum. Passes back the existing ACE_Event_Handler and its sigaction if pointers are non-zero. Returns -1 on failure and a <sigkey> that is >= 0 on success. Reimplemented from ACE_Sig_Handler.
Remove an ACE_Event_Handler currently associated with signum. We remove the handler if (1) its sigkey> matches the sigkey passed as a parameter or (2) if we've been told to remove all the handlers, i.e., <sigkey> == -1. If a new disposition is given it is installed and the previous disposition is returned (if desired by the caller). Returns 0 on success and -1 if signum is invalid. Reimplemented from ACE_Sig_Handler.
Return the head of the list of <ACE_Sig_Handler>s associated with SIGNUM. Reimplemented from ACE_Sig_Handler.
Set a new ACE_Event_Handler that is associated with SIGNUM at the head of the list of signals. Return the existing handler that was at the head. Reimplemented from ACE_Sig_Handler.
Callback routine registered with sigaction(2) that dispatches the <handle_signal> method of all the pre-registered ACE_Event_Handlers for signum Reimplemented from ACE_Sig_Handler.
Member Data Documentation
Keeps track of the id that uniquely identifies each registered signal handler. This id can be used to cancel a timer via the <remove_handler> method.
If this is true then a 3rd party library has registered a handler...
The documentation for this class was generated from the following files: Generated on Mon Sep 15 07:16:57 2008 for ACE by ![]() |