Loading [MathJax]/jax/output/HTML-CSS/config.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
pism::python::SigInstaller Class Reference

Installs a signal handler on construction; deinstalls on destruction. More...

#include <pism_python.hh>

Public Member Functions

 SigInstaller (int sig, void(*new_handler)(int))
 Installs handle new_handler for signal sig.
 
void release ()
 Restores the signal handler to its previous value.
 
 ~SigInstaller ()
 

Private Attributes

void(* m_old_handler )(int)
 
int m_sig
 

Detailed Description

Installs a signal handler on construction; deinstalls on destruction.

Definition at line 36 of file pism_python.hh.


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