X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/88fad0aaff9eb463f048bfdfe4ad6218aba44ddb..07ad10208f1c81a149c0737abd70b5a586f06eb0:/include/simgrid/actor.h diff --git a/include/simgrid/actor.h b/include/simgrid/actor.h index 0cdb36f6b0..01e8e07eea 100644 --- a/include/simgrid/actor.h +++ b/include/simgrid/actor.h @@ -1,6 +1,4 @@ -/* Public interface to the Link datatype */ - -/* Copyright (c) 2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2018-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -22,9 +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 int sg_actor_get_PID(sg_actor_t actor); -XBT_PUBLIC int sg_actor_get_PPID(sg_actor_t actor); +XBT_PUBLIC aid_t sg_actor_get_PID(sg_actor_t actor); +XBT_PUBLIC aid_t sg_actor_get_PPID(sg_actor_t actor); +XBT_PUBLIC sg_actor_t sg_actor_by_PID(aid_t pid); XBT_PUBLIC const char* sg_actor_get_name(sg_actor_t actor); XBT_PUBLIC sg_host_t sg_actor_get_host(sg_actor_t actor); XBT_PUBLIC const char* sg_actor_get_property_value(sg_actor_t actor, const char* name); @@ -33,11 +31,15 @@ XBT_PUBLIC void sg_actor_suspend(sg_actor_t actor); XBT_PUBLIC void sg_actor_resume(sg_actor_t actor); 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 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(); XBT_PUBLIC void sg_actor_set_kill_time(sg_actor_t actor, double kill_time); +XBT_PUBLIC void sg_actor_yield(); +XBT_PUBLIC void sg_actor_sleep_for(double duration); SG_END_DECL() #endif /* INCLUDE_SIMGRID_ACTOR_H_ */