Takes care of user interrupts (Ctrl+C) More...
#include <casadi_interrupt.hpp>
This is an internal class.
Extra doc: https://github.com/casadi/casadi/wiki/L_23l
Definition at line 47 of file casadi_interrupt.hpp.
Static Public Member Functions | |
static bool | is_main_thread () |
Are we in the main thread? More... | |
static void | check () |
Raises an error if an interrupt was captured. More... | |
Static Public Attributes | |
static bool(* | checkInterrupted )() |
The routine that is used for checking interrupts. More... | |
static void(* | clearInterrupted )() |
The routine that is used for clearing interrupts. More... | |
|
inlinestatic |
Definition at line 71 of file casadi_interrupt.hpp.
Referenced by casadi::OracleFunction::calc_function(), casadi::MXFunction::disp_more(), casadi::SXFunction::disp_more(), casadi::Matrix< Scalar >::print_sparse(), casadi::Ipqp::solve(), and casadi::Qrqp::solve().
|
static |
Definition at line 44 of file casadi_interrupt.cpp.
|
static |
Definition at line 63 of file casadi_interrupt.hpp.
|
static |
Definition at line 65 of file casadi_interrupt.hpp.