X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/860cb7e66dba1ceb0769b5945fa52b29e54a9cf0..cb1f41e17133f75d16ce09edee442cda1ae579b6:/include/simgrid/actor.h diff --git a/include/simgrid/actor.h b/include/simgrid/actor.h index e0441732bf..abab87ecd4 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); @@ -35,7 +38,10 @@ XBT_PUBLIC int sg_actor_is_suspended(sg_actor_t actor); XBT_PUBLIC sg_actor_t sg_actor_restart(sg_actor_t actor); void sg_actor_set_auto_restart(sg_actor_t actor, int auto_restart); XBT_PUBLIC void sg_actor_daemonize(sg_actor_t actor); -XBT_PUBLIC void sg_actor_migrate(sg_actor_t process, sg_host_t host); +XBT_PUBLIC +XBT_ATTRIB_DEPRECATED_v329("Please use sg_actor_set_host() instead") void sg_actor_migrate(sg_actor_t process, + sg_host_t host); +XBT_PUBLIC void sg_actor_set_host(sg_actor_t process, sg_host_t host); XBT_PUBLIC void sg_actor_join(sg_actor_t actor, double timeout); XBT_PUBLIC void sg_actor_kill(sg_actor_t actor); XBT_PUBLIC void sg_actor_kill_all();