ACE 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Attributes | List of all members
ACE_Sig_Guard Class Reference

Hold signals in MASK for duration of a C++ statement block. Note that a "0" for mask causes all signals to be held. More...

#include <Signal.h>

Collaboration diagram for ACE_Sig_Guard:
Collaboration graph
[legend]

Public Member Functions

 ACE_Sig_Guard (ACE_Sig_Set *mask=nullptr, bool condition=true)
 
 ~ACE_Sig_Guard ()
 Restore blocked signals.
 
void dump () const
 Dump the state of an object.
 

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
 

Private Attributes

ACE_Sig_Set omask_
 Original signal mask.
 
bool const condition_
 Guard Condition.
 

Detailed Description

Hold signals in MASK for duration of a C++ statement block. Note that a "0" for mask causes all signals to be held.

Constructor & Destructor Documentation

◆ ACE_Sig_Guard()

ACE_Sig_Guard::ACE_Sig_Guard ( ACE_Sig_Set * mask = nullptr,
bool condition = true )
inline

This is kind of conditional Guard, needed when guard should be activated only when a specific condition met. When condition == true (default), Guard is activated

◆ ~ACE_Sig_Guard()

ACE_Sig_Guard::~ACE_Sig_Guard ( )

Restore blocked signals.

Restore the signal mask.

Member Function Documentation

◆ dump()

void ACE_Sig_Guard::dump ( ) const

Dump the state of an object.

Member Data Documentation

◆ ACE_ALLOC_HOOK_DECLARE

ACE_Sig_Guard::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

◆ condition_

bool const ACE_Sig_Guard::condition_
private

Guard Condition.

◆ omask_

ACE_Sig_Set ACE_Sig_Guard::omask_
private

Original signal mask.


The documentation for this class was generated from the following files: