A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
introduce type aid_t for Actor's ID (ie, PID)
[simgrid.git]
/
include
/
simgrid
/
s4u
/
Actor.hpp
diff --git
a/include/simgrid/s4u/Actor.hpp
b/include/simgrid/s4u/Actor.hpp
index
c158e9d
..
24f7437
100644
(file)
--- a/
include/simgrid/s4u/Actor.hpp
+++ b/
include/simgrid/s4u/Actor.hpp
@@
-207,10
+207,14
@@
public:
simgrid::xbt::string name();
/** Retrieves the host on which that actor is running */
s4u::Host* host();
simgrid::xbt::string name();
/** Retrieves the host on which that actor is running */
s4u::Host* host();
- /** Retrieves the PID of that actor */
- int pid();
- /** Retrieves the PPID of that actor */
- int ppid();
+ /** Retrieves the PID of that actor
+ *
+ * actor_id_t is an alias for unsigned long */
+ aid_t pid();
+ /** Retrieves the PPID of that actor
+ *
+ * actor_id_t is an alias for unsigned long */
+ aid_t ppid();
/** Suspend an actor by suspending the task on which it was waiting for the completion. */
void suspend();
/** Suspend an actor by suspending the task on which it was waiting for the completion. */
void suspend();
@@
-246,10
+250,10
@@
public:
*/
void kill();
*/
void kill();
- static void kill(
in
t pid);
+ static void kill(
aid_
t pid);
/** Retrieves the actor that have the given PID (or nullptr if not existing) */
/** Retrieves the actor that have the given PID (or nullptr if not existing) */
- static ActorPtr byPid(
in
t pid);
+ static ActorPtr byPid(
aid_
t pid);
/** @brief Wait for the actor to finish.
*
/** @brief Wait for the actor to finish.
*
@@
-313,11
+317,11
@@
namespace this_actor {
XBT_PUBLIC(Comm&) isend(MailboxPtr chan, void* payload, double simulatedSize);
XBT_PUBLIC(Comm&) isend(MailboxPtr chan, void* payload, double simulatedSize);
- /** @brief Returns the
PID of the current actor
. */
- XBT_PUBLIC(
in
t) pid();
+ /** @brief Returns the
actor ID of the current actor (same as pid)
. */
+ XBT_PUBLIC(
aid_
t) pid();
- /** @brief Returns the
PPID of the current actor
. */
- XBT_PUBLIC(
in
t) ppid();
+ /** @brief Returns the
ancestor's actor ID of the current actor (same as ppid)
. */
+ XBT_PUBLIC(
aid_
t) ppid();
/** @brief Returns the name of the current actor. */
XBT_PUBLIC(std::string) name();
/** @brief Returns the name of the current actor. */
XBT_PUBLIC(std::string) name();