From ed9d6f61b6acfa2e270563b08e041f8144948fe1 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 2 Nov 2019 10:37:40 +0100 Subject: [PATCH] add the python binding to Actor::is_daemon --- src/bindings/python/simgrid_python.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bindings/python/simgrid_python.cpp b/src/bindings/python/simgrid_python.cpp index 4b70a2df59..347c4b290f 100644 --- a/src/bindings/python/simgrid_python.cpp +++ b/src/bindings/python/simgrid_python.cpp @@ -257,6 +257,9 @@ PYBIND11_MODULE(simgrid, m) .def("daemonize", &Actor::daemonize, "This actor will be automatically terminated when the last non-daemon actor finishes, see :cpp:func:`void " "simgrid::s4u::Actor::daemonize()`") + .def("is_daemon", &Actor::is_daemon, + "Returns True if that actor is a daemon and will be terminated automatically when the last non-daemon actor " + "terminates.") .def("join", py::overload_cast(&Actor::join), "Wait for the actor to finish, see :cpp:func:`void simgrid::s4u::Actor::join(double)`", py::arg("timeout")) .def("kill", [](ActorPtr act) { act->kill(); }, "Kill that actor") -- 2.20.1