From: Martin Quinson Date: Sun, 27 Jan 2019 17:48:31 +0000 (+0100) Subject: Document a recent example X-Git-Tag: v3_22~466 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/0839a22c20695122eadb1ea6b957343c18348722 Document a recent example --- diff --git a/examples/s4u/README.rst b/examples/s4u/README.rst index ca814d7c5c..a01e332eb4 100644 --- a/examples/s4u/README.rst +++ b/examples/s4u/README.rst @@ -42,7 +42,16 @@ Starting and Stoping Actors - |cpp| `examples/s4u/actor-create/s4u-actor-create.cpp `_ - |py| `examples/python/actor-create/actor-create.py `_ - + + - **React to the end of actors:** + You can attach a callback to the end of actors. There is two ways + of doing so, depending of whether you want your callback to be + executed when a specific actor ends (with ```this_actor::on_exit()```) + or whether it should be executed when any actor ends (with + ```Actor::on_destruction()```) + + - |cpp| `examples/s4u/actor-exiting/s4u-actor-exiting.cpp `_ + - **Kill actors:** Actors can forcefully stop other actors.