34#ifndef _uhal_SigBusGuard_hpp_
35#define _uhal_SigBusGuard_hpp_
64 void protect(
const std::function<
void()>&,
const std::string&);
66 static void blockSIGBUS();
71 struct sigaction mAction;
72 struct sigaction mOriginalAction;
Wrapper to generate a new Python exception type.
\rst Holds a reference to a Python object (no reference counting)
static volatile sig_atomic_t sProtected
std::lock_guard< std::mutex > mLockGuard
#define UHAL_DEFINE_DERIVED_EXCEPTION_CLASS(ClassName, BaseClassName, ClassDescription)
Macro for simplifying the declaration and definition of derived exception types.
#define UHAL_DEFINE_EXCEPTION_CLASS(ClassName, ClassDescription)