From c2f0bb2b65071b31616d95ef449dca3ccb22bd08 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 22 Jan 2020 21:49:03 +0100 Subject: [PATCH] Release the GIL when calling Engine::run. All tests are broken from now on... --- src/bindings/python/simgrid_python.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/python/simgrid_python.cpp b/src/bindings/python/simgrid_python.cpp index 7fc53bca11..81927f4adf 100644 --- a/src/bindings/python/simgrid_python.cpp +++ b/src/bindings/python/simgrid_python.cpp @@ -165,7 +165,7 @@ PYBIND11_MODULE(simgrid, m) .def("load_deployment", &Engine::load_deployment, "Load a deployment file and launch the actors that it contains, see " ":cpp:func:`simgrid::s4u::Engine::load_deployment()`") - .def("run", &Engine::run, "Run the simulation") + .def("run", &Engine::run, py::call_guard(), "Run the simulation") .def("register_actor", [](Engine* e, const std::string& name, py::object fun_or_class) { e->register_actor(name, [fun_or_class](std::vector args) { -- 2.20.1