25 #ifndef MSQ_INTERRUPT_HPP
26 #define MSQ_INTERRUPT_HPP
87 void*
operator new(
size_t size);
MsqInterrupt & operator=(const MsqInterrupt &)
static bool interrupt()
Check if an interrupt was seen.
static unsigned instanceCount
Used to hold the error state and return it to the application.
MsqInterrupt()
Constructor, increment instance count.
~MsqInterrupt()
Constructor, decrement instance count.
static void set_interrupt()
Set the interrupt flag.
static void allow(MsqError &err)
Allow Mesquite to register a SIGINT handler.
static void disable(MsqError &err)
Disable Mesquite's SIGINT handler.
static InterruptMode interruptMode
static void enable(MsqError &err)
Force Mesquite to register SIGINT handler.
static void clear()
Clear the interrupt flag.
Class to watch for user-interrupt (SIGINT, ctrl-C)
static void set_handler()