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
Remove features marked with XBT_ATTRIB_DEPRECATED_v325.
[simgrid.git]
/
src
/
msg
/
msg_legacy.cpp
diff --git
a/src/msg/msg_legacy.cpp
b/src/msg/msg_legacy.cpp
index
9cedca5
..
344a8f9
100644
(file)
--- a/
src/msg/msg_legacy.cpp
+++ b/
src/msg/msg_legacy.cpp
@@
-144,6
+144,44
@@
void MSG_process_detach()
{
sg_actor_detach();
}
+aid_t MSG_process_self_PID()
+{
+ return sg_actor_self_get_pid();
+}
+
+/** @brief Return the PPID of the current process.
+ *
+ * This function returns the PID of the parent of the currently running #msg_process_t.
+ */
+aid_t MSG_process_self_PPID()
+{
+ return sg_actor_self_get_ppid();
+}
+
+/** @brief Return the name of the current process. */
+const char* MSG_process_self_name()
+{
+ return sg_actor_self_get_name();
+}
+/** @brief Return the current process.
+ *
+ * This function returns the currently running #msg_process_t.
+ */
+msg_process_t MSG_process_self()
+{
+ return sg_actor_self();
+}
+
+/** @brief Take an extra reference on that process to prevent it to be garbage-collected */
+void MSG_process_ref(msg_process_t process)
+{
+ sg_actor_ref(process);
+}
+/** @brief Release a reference on that process so that it can get be garbage-collected */
+void MSG_process_unref(msg_process_t process)
+{
+ sg_actor_unref(process);
+}
/* ************************** NetZones *************************** */
sg_netzone_t MSG_zone_get_root()
@@
-244,11
+282,11
@@
const char* MSG_host_get_name(sg_host_t host)
}
void* MSG_host_get_data(sg_host_t host)
{
- return sg_host_
user
(host);
+ return sg_host_
data
(host);
}
void MSG_host_set_data(sg_host_t host, void* data)
{
- return sg_host_
user
_set(host, data);
+ return sg_host_
data
_set(host, data);
}
xbt_dict_t MSG_host_get_mounted_storage_list(sg_host_t host)
{
@@
-294,10
+332,6
@@
int MSG_host_is_on(sg_host_t h)
{
return sg_host_is_on(h);
}
-int MSG_host_is_off(sg_host_t h) // deprecated
-{
- return not sg_host_is_on(h);
-}
xbt_dict_t MSG_host_get_properties(sg_host_t host)
{
return sg_host_get_properties(host);