Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Release the GIL when calling Engine::run.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 22 Jan 2020 20:49:03 +0000 (21:49 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 24 Jan 2020 20:45:46 +0000 (21:45 +0100)
All tests are broken from now on...

src/bindings/python/simgrid_python.cpp

index 7fc53bc..81927f4 100644 (file)
@@ -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<GilScopedRelease>(), "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<std::string> args) {