X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e5ef131da9aed2285a9320abe3ffd2b1d1b269d1..6c7b494f8d1203fb34e01e349b339a70a68daa7a:/include/simgrid/actor.h diff --git a/include/simgrid/actor.h b/include/simgrid/actor.h index 6ab028ba38..5885acca42 100644 --- a/include/simgrid/actor.h +++ b/include/simgrid/actor.h @@ -20,6 +20,9 @@ SG_BEGIN_DECL You should not access directly to the fields of the pointed structure, but always use the provided API to interact with actors. */ +XBT_PUBLIC size_t sg_actor_count(); +XBT_PUBLIC sg_actor_t* sg_actor_list(); + XBT_PUBLIC sg_actor_t sg_actor_create(const char* name, sg_host_t host, xbt_main_func_t code, int argc, const char* const* argv); XBT_PUBLIC sg_actor_t sg_actor_init(const char* name, sg_host_t host); @@ -27,8 +30,10 @@ XBT_PUBLIC sg_actor_t sg_actor_init(const char* name, sg_host_t host); * * 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, const char* const* argv); +XBT_PUBLIC void sg_actor_set_stacksize(sg_actor_t actor, unsigned size); + XBT_PUBLIC void sg_actor_exit(); -XBT_PUBLIC void sg_actor_on_exit(int_f_int_pvoid_t fun, void* data); +XBT_PUBLIC void sg_actor_on_exit(void_f_int_pvoid_t fun, void* data); XBT_PUBLIC aid_t sg_actor_get_PID(const_sg_actor_t actor); XBT_PUBLIC aid_t sg_actor_get_PPID(const_sg_actor_t actor);