|
FreeTensor
|
#include <except.h>


Public Member Functions | |
| InterruptExcept () | |
Public Member Functions inherited from freetensor::Error | |
| Error (const std::string &msg, std::source_location loc=std::source_location::current()) | |
SIGINT as an exception
This is required because Python has its own signal handler. See https://docs.python.org/3/c-api/exceptions.html#signal-handling
If not invoking from Python, throwing this exception is equivalent to raise SIGINT
A special adaptor in ffi/except.cc is implemented for this exception. See https://pybind11.readthedocs.io/en/stable/faq.html#how-can-i-properly-handle-ctrl-c-in-long-running-functions for details
| freetensor::InterruptExcept::InterruptExcept | ( | ) |