From: Martin Quinson Date: Wed, 21 Nov 2018 21:08:04 +0000 (+0100) Subject: tiny doc improvement X-Git-Tag: v3_22~790 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/df24d1f9b8d85ff3f81c5d4f816310303d7186ab tiny doc improvement --- diff --git a/docs/source/app_s4u.rst b/docs/source/app_s4u.rst index f0b7d30186..c4dbd414e8 100644 --- a/docs/source/app_s4u.rst +++ b/docs/source/app_s4u.rst @@ -394,6 +394,8 @@ s4u::Actor .. doxygentypedef:: ActorPtr +.. doxygentypedef:: aid_t + .. doxygenclass:: simgrid::s4u::Actor :members: :protected-members: diff --git a/include/simgrid/forward.h b/include/simgrid/forward.h index 4da608426a..2ebb20b27d 100644 --- a/include/simgrid/forward.h +++ b/include/simgrid/forward.h @@ -232,6 +232,7 @@ typedef unsigned long long sg_size_t; */ typedef long long sg_offset_t; +/** Actor's ID, just like the classical processes' have PID in UNIX */ typedef long aid_t; #endif /* SIMGRID_TYPES_H */ diff --git a/include/simgrid/s4u/Actor.hpp b/include/simgrid/s4u/Actor.hpp index 61a78a005e..757fadf20f 100644 --- a/include/simgrid/s4u/Actor.hpp +++ b/include/simgrid/s4u/Actor.hpp @@ -206,13 +206,9 @@ public: const char* get_cname() const; /** Retrieves the host on which that actor is running */ s4u::Host* get_host(); - /** Retrieves the PID of that actor - * - * aid_t is an alias for long */ + /** Retrieves the actor ID of that actor */ aid_t get_pid() const; - /** Retrieves the PPID of that actor - * - * aid_t is an alias for long */ + /** Retrieves the actor ID of that actor's creator */ aid_t get_ppid() const; /** Suspend an actor by suspending the task on which it was waiting for the completion. */ @@ -485,7 +481,7 @@ XBT_ATTRIB_DEPRECATED_v325("Please use std::vectors as parameters") XBT_PUBLIC XBT_PUBLIC ExecPtr exec_init(double flops_amounts); XBT_PUBLIC ExecPtr exec_async(double flops_amounts); -/** @brief Returns the actor ID of the current actor). */ +/** @brief Returns the actor ID of the current actor. */ XBT_PUBLIC aid_t get_pid(); /** @brief Returns the ancestor's actor ID of the current actor. */