ACE 7.0.6
|
C++ wrapper facade for the sigaction
struct.
More...
#include <Signal.h>
Public Member Functions | |
ACE_Sig_Action () | |
Default constructor. Initializes everything to 0. More... | |
ACE_Sig_Action (ACE_SignalHandler handler, sigset_t *sigmask=nullptr, int flags=0) | |
ACE_Sig_Action (ACE_SignalHandler handler, const ACE_Sig_Set &sigmask, int flags=0) | |
ACE_Sig_Action (ACE_SignalHandler handler, int signum, sigset_t *sigmask=nullptr, int flags=0) | |
ACE_Sig_Action (ACE_SignalHandler handler, int signum, const ACE_Sig_Set &sigmask, int flags=0) | |
ACE_Sig_Action (const ACE_Sig_Set &signalss, ACE_SignalHandler handler, const ACE_Sig_Set &sigmask, int flags=0) | |
ACE_Sig_Action (const ACE_Sig_Set &signalss, ACE_SignalHandler handler, sigset_t *sigmask=nullptr, int flags=0) | |
ACE_Sig_Action (const ACE_Sig_Action &)=default | |
ACE_Sig_Action (ACE_Sig_Action &&)=default | |
ACE_Sig_Action & | operator= (ACE_Sig_Action const &)=default |
ACE_Sig_Action & | operator= (ACE_Sig_Action &&)=default |
~ACE_Sig_Action () | |
Default dtor. More... | |
int | register_action (int signum, ACE_Sig_Action *oaction=nullptr) |
int | restore_action (int signum, ACE_Sig_Action &oaction) |
int | retrieve_action (int signum) |
Retrieve the current disposition into this . More... | |
void | set (struct sigaction *) |
Set current signal action. More... | |
struct sigaction * | get () |
Get current signal action. More... | |
operator struct sigaction * () | |
void | flags (int) |
Set current signal flags. More... | |
int | flags () |
Get current signal flags. More... | |
void | mask (sigset_t *) |
Set current signal mask. More... | |
void | mask (ACE_Sig_Set &) |
sigset_t * | mask () |
Get current signal mask. More... | |
void | handler (ACE_SignalHandler) |
Set current signal handler (pointer to function). More... | |
ACE_SignalHandler | handler () |
Get current signal handler (pointer to function). More... | |
void | dump () const |
Dump the state of an object. More... | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. More... | |
Private Attributes | |
struct sigaction | sa_ |
Controls signal behavior. More... | |
C++ wrapper facade for the sigaction
struct.
ACE_Sig_Action::ACE_Sig_Action | ( | ) |
Default constructor. Initializes everything to 0.
ACE_Sig_Action::ACE_Sig_Action | ( | ACE_SignalHandler | handler, |
sigset_t * | sigmask = nullptr , |
||
int | flags = 0 |
||
) |
Assigns the various fields of a sigaction
struct but doesn't register for signal handling via the sigaction
function.
ACE_Sig_Action::ACE_Sig_Action | ( | ACE_SignalHandler | handler, |
const ACE_Sig_Set & | sigmask, | ||
int | flags = 0 |
||
) |
Assigns the various fields of a sigaction
struct but doesn't register for signal handling via the sigaction
function.
ACE_Sig_Action::ACE_Sig_Action | ( | ACE_SignalHandler | handler, |
int | signum, | ||
sigset_t * | sigmask = nullptr , |
||
int | flags = 0 |
||
) |
Assigns the various fields of a sigaction
struct and registers the handler to process signal signum via the sigaction
function.
ACE_Sig_Action::ACE_Sig_Action | ( | ACE_SignalHandler | handler, |
int | signum, | ||
const ACE_Sig_Set & | sigmask, | ||
int | flags = 0 |
||
) |
Assigns the various fields of a sigaction
struct and registers the handler to process signal signum via the sigaction
function.
ACE_Sig_Action::ACE_Sig_Action | ( | const ACE_Sig_Set & | signalss, |
ACE_SignalHandler | handler, | ||
const ACE_Sig_Set & | sigmask, | ||
int | flags = 0 |
||
) |
Assigns the various fields of a sigaction
struct and registers the handler to process all signalss via the sigaction
function.
ACE_Sig_Action::ACE_Sig_Action | ( | const ACE_Sig_Set & | signalss, |
ACE_SignalHandler | handler, | ||
sigset_t * | sigmask = nullptr , |
||
int | flags = 0 |
||
) |
Assigns the various fields of a sigaction
struct and registers the handler to process all signalss via the sigaction
function.
|
default |
|
default |
ACE_Sig_Action::~ACE_Sig_Action | ( | ) |
Default dtor.
void ACE_Sig_Action::dump | ( | void | ) | const |
Dump the state of an object.
|
inline |
Get current signal flags.
|
inline |
Set current signal flags.
|
inline |
Get current signal action.
|
inline |
Get current signal handler (pointer to function).
|
inline |
Set current signal handler (pointer to function).
|
inline |
Get current signal mask.
|
inline |
|
inline |
Set current signal mask.
|
inline |
|
default |
|
default |
|
inline |
Register this
as the current disposition and store old disposition into oaction if it is non-NULL.
|
inline |
Assign the value of oaction to this
and make it become the new signal disposition.
|
inline |
Retrieve the current disposition into this
.
|
inline |
Set current signal action.
ACE_Sig_Action::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.
|
private |
Controls signal behavior.