26 #include "casadi_interrupt.hpp"
28 #ifdef CASADI_WITH_THREAD
29 #ifdef CASADI_WITH_THREAD_MINGW
30 #include <mingw.thread.h>
39 InterruptHandler::checkInterruptedDefault;
42 InterruptHandler::clearInterruptedDefault;
45 #ifdef CASADI_WITH_THREAD
46 static std::thread::id main = std::this_thread::get_id();
47 return std::this_thread::get_id()==main;
static void(* clearInterrupted)()
The routine that is used for clearing interrupts.
static bool(* checkInterrupted)()
The routine that is used for checking interrupts.
static bool is_main_thread()
Are we in the main thread?