From 9c78faf166ce0a2b668a4bdc5e95b21132d5b359 Mon Sep 17 00:00:00 2001 From: Sylvain Lefebvre Date: Thu, 23 Apr 2020 12:16:02 +0900 Subject: [PATCH] Added Mailbox::set_receiver to python binding --- src/bindings/python/simgrid_python.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bindings/python/simgrid_python.cpp b/src/bindings/python/simgrid_python.cpp index af3d7583e4..670be45bc5 100644 --- a/src/bindings/python/simgrid_python.cpp +++ b/src/bindings/python/simgrid_python.cpp @@ -256,7 +256,13 @@ PYBIND11_MODULE(simgrid, m) // data.dec_ref(); // FIXME: why does it break python-actor-create? return data; }, - py::call_guard(), "Blocking data reception"); + py::call_guard(), "Blocking data reception") + .def("set_receiver", + [](Mailbox* self, ActorPtr actor) { + self->set_receiver(actor); + }, + py::call_guard(), + "Sets the actor as permanent receiver"); /* Class Comm */ py::class_(m, "Comm", "Communication") -- 2.20.1