libzypp  17.25.8
zypp::SigprocmaskSaver Class Reference

Exception safe sigprocmask save/restore. More...

#include <Signal.h>

Public Member Functions

 SigprocmaskSaver ()
 Ctor saving the original sigprocmask. More...
 ~SigprocmaskSaver ()
 Dtor restoring the original sigprocmask. More...
void block (int signum_r)
 Temporary block signal. More...
void unblock (int signum_r)
 Temporary unblock signal. More...
bool pending (int signum_r)
 Whether signal delivery is pending. More...
void suspend ()
 Wait for signals not blocked in original sigprocmask. More...

Private Attributes

::sigset_t _origmask

Detailed Description

Exception safe sigprocmask save/restore.

Definition at line 41 of file Signal.h.

Constructor & Destructor Documentation

◆ SigprocmaskSaver()

zypp::SigprocmaskSaver::SigprocmaskSaver ( )

Ctor saving the original sigprocmask.

Definition at line 45 of file Signal.h.

◆ ~SigprocmaskSaver()

zypp::SigprocmaskSaver::~SigprocmaskSaver ( )

Dtor restoring the original sigprocmask.

Definition at line 48 of file Signal.h.

Member Function Documentation

◆ block()

void zypp::SigprocmaskSaver::block ( int  signum_r)

Temporary block signal.

Definition at line 52 of file Signal.h.

◆ unblock()

void zypp::SigprocmaskSaver::unblock ( int  signum_r)

Temporary unblock signal.

Definition at line 60 of file Signal.h.

◆ pending()

bool zypp::SigprocmaskSaver::pending ( int  signum_r)

Whether signal delivery is pending.

Definition at line 68 of file Signal.h.

◆ suspend()

void zypp::SigprocmaskSaver::suspend ( )

Wait for signals not blocked in original sigprocmask.

Definition at line 75 of file Signal.h.

Member Data Documentation

◆ _origmask

::sigset_t zypp::SigprocmaskSaver::_origmask

Definition at line 78 of file Signal.h.

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