ACE_Sig_Handler Class ReferenceThis is the main dispatcher of signals for ACE. It improves the existing UNIX signal handling mechanism by allowing C++ objects to handle signals in a way that avoids the use of global/static variables and functions. More...
Inheritance diagram for ACE_Sig_Handler:
![]()
Collaboration diagram for ACE_Sig_Handler:
![]()
Detailed DescriptionThis is the main dispatcher of signals for ACE. It improves the existing UNIX signal handling mechanism by allowing C++ objects to handle signals in a way that avoids the use of global/static variables and functions.
Using this class a program can register an 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 Constructor & Destructor Documentation
Default constructor.
Destructor.
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 >= 0 on success. Reimplemented in ACE_Sig_Handlers.
Remove the ACE_Event_Handler currently associated with signum. sigkey is ignored in this implementation since there is only one instance of a signal handler. Install the new disposition (if given) and return the previous disposition (if desired by the caller). Returns 0 on success and -1 if signum is invalid. Reimplemented in ACE_Sig_Handlers.
True if there is a pending signal.
Reset the value of <sig_pending_> so that no signal is pending.
Set a new ACE_Event_Handler that is associated with signum. Return the existing handler. Reimplemented in ACE_Sig_Handlers.
Callback routine registered with sigaction(2) that dispatches the <handle_signal> method of the appropriate pre-registered ACE_Event_Handler. Reimplemented in ACE_Sig_Handlers.
Set a new ACE_Event_Handler that is associated with signum. Return the existing handler. Does not acquire any locks so that it can be called from a signal handler, such as <dispatch>.
This implementation method is called by <register_handler> and
Check whether the SIGNUM is within the legal range of signals.
Member Data Documentation
Keeps track of whether a signal is pending.
Array used to store one user-defined Event_Handler for every signal.
The documentation for this class was generated from the following files: Generated on Mon Sep 15 07:16:56 2008 for ACE by ![]() |