X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ec1b59c1bc420bcf3f33479388ecf072d47f3eea..4724bddcd04a5531a88dd84f798b4c8cc7f1bd00:/src/bindings/python/simgrid_python.cpp diff --git a/src/bindings/python/simgrid_python.cpp b/src/bindings/python/simgrid_python.cpp index d5ed15963a..1a02f46d0a 100644 --- a/src/bindings/python/simgrid_python.cpp +++ b/src/bindings/python/simgrid_python.cpp @@ -179,9 +179,7 @@ PYBIND11_MODULE(simgrid, m) .def("migrate", &Actor::migrate, "Moves that actor to another host, see :cpp:func:`void simgrid::s4u::Actor::migrate()`", py::arg("dest")) .def("self", &Actor::self, "Retrieves the current actor, see :cpp:func:`void simgrid::s4u::Actor::self()`") - .def("suspend", &Actor::suspend, - "Suspend that actor, that is blocked until resume()ed by another actor. See :cpp:func:`void " - "simgrid::s4u::Actor::suspend()`") - .def("resume", &Actor::resume, - "Resume that actor, that was previously suspend()ed. See :cpp:func:`void simgrid::s4u::Actor::suspend()`"); + .def("is_suspended", &Actor::is_suspended, "Returns True if that actor is currently suspended.") + .def("suspend", &Actor::suspend, "Suspend that actor, that is blocked until resume()ed by another actor.") + .def("resume", &Actor::resume, "Resume that actor, that was previously suspend()ed."); }