1 #ifndef SIGNAL_HANDLER_PYBIND_HH_ 2 #define SIGNAL_HANDLER_PYBIND_HH_ 12 std::list< std::string > all_members;
14 all_members.push_back(
"cancel_all" );
17 "Asynchronous call to exit the process with the given exit code" );
19 all_members.push_back(
"SignalHandler" );
21 .def( pybind11::init< >() )
std::list< std::string > export_signal_handler(pybind11::module &mod)
Wrapper for Python extension modules.
static void cancel_all(int a_code)
Asynchronous call to exit the process with the given exit code.
void add_cancelable(cancelable *a_cancelable)
Add a cancelable object.
void remove_cancelable(cancelable *a_cancelable)
Remove a cancelable object.
void reset()
Remove all cancelables.
bool typename Extra class_ & def(const char *name_, Func &&f, const Extra &... extra)