FreeTensor
Loading...
Searching...
No Matches
Public Member Functions | List of all members
freetensor::InterruptExcept Class Reference

#include <except.h>

Inheritance diagram for freetensor::InterruptExcept:
Inheritance graph
[legend]
Collaboration diagram for freetensor::InterruptExcept:
Collaboration graph
[legend]

Public Member Functions

 InterruptExcept ()
 
- Public Member Functions inherited from freetensor::Error
 Error (const std::string &msg, std::source_location loc=std::source_location::current())
 

Detailed Description

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

Constructor & Destructor Documentation

◆ InterruptExcept()

freetensor::InterruptExcept::InterruptExcept ( )

The documentation for this class was generated from the following files: