Browse Source

add support for timeouts

refactoring
Sebastian Junges 4 years ago
parent
commit
3f1fddc847
  1. 0
      examples/analysis/05-analysis.py
  2. 6
      src/core/core.cpp

0
examples/analysis/05-analysis.py

6
src/core/core.cpp

@ -1,5 +1,6 @@
#include "core.h"
#include "storm/utility/initialize.h"
#include "storm/utility/SignalHandler.h"
#include "storm/io/DirectEncodingExporter.h"
#include "storm/storage/ModelFormulasPair.h"
#include "storm/storage/dd/DdType.h"
@ -26,6 +27,11 @@ void define_core(py::module& m) {
m.def("_set_loglevel_trace", []() {
storm::utility::setLogLevel(l3pp::LogLevel::TRACE);
});
m.def("set_timeout", &storm::utility::resources::setTimeoutAlarm, py::arg("timeout"), "Set timeout in seconds");
m.def("reset_timeout", &storm::utility::resources::resetTimeoutAlarm, "Reset timeout");
m.def("install_signal_handlers", &storm::utility::resources::installSignalHandler);
}
void define_parse(py::module& m) {

Loading…
Cancel
Save