Private Member Functions | Private Attributes | Friends

ACE_Log_Msg_Sig_Guard Class Reference

For use only by ACE_Log_Msg. More...

List of all members.

Private Member Functions

 ACE_Log_Msg_Sig_Guard (void)
 ~ACE_Log_Msg_Sig_Guard (void)

Private Attributes

sigset_t omask_
 Original signal mask.

Friends

ssize_t ACE_Log_Msg::log (ACE_Log_Record &log_record, int suppress_stderr)

Detailed Description

For use only by ACE_Log_Msg.

Doesn't require the use of global variables or global functions in an application).

Definition at line 2205 of file Log_Msg.cpp.


Constructor & Destructor Documentation

ACE_Log_Msg_Sig_Guard::ACE_Log_Msg_Sig_Guard ( void   )  [private]

Definition at line 2218 of file Log_Msg.cpp.

{
#if !defined (ACE_LACKS_UNIX_SIGNALS)
  ACE_OS::sigemptyset (&this->omask_);

#  if defined (ACE_LACKS_PTHREAD_THR_SIGSETMASK)
  ACE_OS::sigprocmask (SIG_BLOCK,
                       ACE_OS_Object_Manager::default_mask (),
                       &this->omask_);
#  else
  ACE_OS::thr_sigsetmask (SIG_BLOCK,
                          ACE_OS_Object_Manager::default_mask (),
                          &this->omask_);
#  endif /* ACE_LACKS_PTHREAD_THR_SIGSETMASK */
#endif /* ACE_LACKS_UNIX_SIGNALS */
}

ACE_Log_Msg_Sig_Guard::~ACE_Log_Msg_Sig_Guard ( void   )  [private]

Definition at line 2235 of file Log_Msg.cpp.

{
#if !defined (ACE_LACKS_UNIX_SIGNALS)
# if defined (ACE_LACKS_PTHREAD_THR_SIGSETMASK)
  ACE_OS::sigprocmask (SIG_SETMASK,
                       &this->omask_,
                       0);
# else
  ACE_OS::thr_sigsetmask (SIG_SETMASK,
                          &this->omask_,
                          0);
# endif /* ACE_LACKS_PTHREAD_THR_SIGSETMASK */
#endif /* ! ACE_LACKS_UNIX_SIGNALS */
}


Friends And Related Function Documentation

ssize_t ACE_Log_Msg::log ( ACE_Log_Record log_record,
int  suppress_stderr 
) [friend]

Member Data Documentation

sigset_t ACE_Log_Msg_Sig_Guard::omask_ [private]

Original signal mask.

Definition at line 2212 of file Log_Msg.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines