NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
Classes | Namespaces | Macros | Functions
be_error_signal_manager.h File Reference
#include <csetjmp>
#include <csignal>
#include <be_error_exception.h>

Go to the source code of this file.

Classes

class  BiometricEvaluation::Error::SignalManager
 A SignalManager object is used to handle signals that come from the operating system. More...
 

Namespaces

namespace  BiometricEvaluation
 This software was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties.
 
namespace  BiometricEvaluation::Error
 Exceptions, and other error handling.
 

Macros

#define BEGIN_SIGNAL_BLOCK(_sigmgr, _blockname)
 
#define END_SIGNAL_BLOCK(_sigmgr, _blockname)
 
#define ABORT_SIGNAL_MANAGER(_sigmgr)
 

Functions

void BiometricEvaluation::Error::SignalManagerSighandler (int signo, siginfo_t *info, void *uap)
 

Macro Definition Documentation

◆ BEGIN_SIGNAL_BLOCK

#define BEGIN_SIGNAL_BLOCK (   _sigmgr,
  _blockname 
)
Value:
do { \
if (!(_sigmgr)->isEnabled()) \
break; \
(_sigmgr)->clearSigHandled(); \
(_sigmgr)->stop(); \
if (sigsetjmp( \
{ \
(_sigmgr)->setSigHandled(); \
goto _blockname ## _end; \
} \
(_sigmgr)->start(); \
} while (0)
static sigjmp_buf _sigJumpBuf
The jump buffer used by the signal handler.

Definition at line 22 of file be_error_signal_manager.h.

◆ END_SIGNAL_BLOCK

#define END_SIGNAL_BLOCK (   _sigmgr,
  _blockname 
)
Value:
do { \
if (!(_sigmgr)->isEnabled()) \
break; \
_blockname ## _end: \
(_sigmgr)->stop(); \
} while (0);

Definition at line 36 of file be_error_signal_manager.h.

◆ ABORT_SIGNAL_MANAGER

#define ABORT_SIGNAL_MANAGER (   _sigmgr)
Value:
do { \
if (!(_sigmgr)->isEnabled()) \
break; \
(_sigmgr)->stop(); \
} while (0);

Definition at line 43 of file be_error_signal_manager.h.