From d97d92731bd3c81da6e1556cad6627a5bc03645e Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 4 Nov 2019 08:55:16 +0100 Subject: [PATCH] document sg_actor_start This contributes to https://framagit.org/simgrid/simgrid/issues/41 --- include/simgrid/actor.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/simgrid/actor.h b/include/simgrid/actor.h index e0441732bf..b50b95756d 100644 --- a/include/simgrid/actor.h +++ b/include/simgrid/actor.h @@ -21,6 +21,9 @@ SG_BEGIN_DECL with actors. */ XBT_PUBLIC sg_actor_t sg_actor_init(const char* name, sg_host_t host); +/** Start the previously initialized actor. + * + * Note that argv is copied over, so you should free your own copy once the actor is started. */ XBT_PUBLIC void sg_actor_start(sg_actor_t actor, xbt_main_func_t code, int argc, char** argv); XBT_PUBLIC aid_t sg_actor_get_PID(sg_actor_t actor); XBT_PUBLIC aid_t sg_actor_get_PPID(sg_actor_t actor); -- 2.20.1