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
cleaning the actor twice seems somewhat overplayed
[simgrid.git]
/
src
/
msg
/
msg_legacy.cpp
diff --git
a/src/msg/msg_legacy.cpp
b/src/msg/msg_legacy.cpp
index
7636c9d
..
fd4562c
100644
(file)
--- a/
src/msg/msg_legacy.cpp
+++ b/
src/msg/msg_legacy.cpp
@@
-134,6
+134,17
@@
msg_error_t MSG_process_sleep(double duration)
return MSG_HOST_FAILURE;
}
}
return MSG_HOST_FAILURE;
}
}
+
+msg_process_t MSG_process_attach(const char* name, void* data, msg_host_t host, xbt_dict_t properties)
+{
+ return sg_actor_attach(name, data, host, properties);
+}
+
+void MSG_process_detach()
+{
+ sg_actor_detach();
+}
+
/* ************************** NetZones *************************** */
sg_netzone_t MSG_zone_get_root()
{
/* ************************** NetZones *************************** */
sg_netzone_t MSG_zone_get_root()
{
@@
-283,9
+294,9
@@
int MSG_host_is_on(sg_host_t h)
{
return sg_host_is_on(h);
}
{
return sg_host_is_on(h);
}
-int MSG_host_is_off(sg_host_t h)
+int MSG_host_is_off(sg_host_t h)
// deprecated
{
{
- return
sg_host_is_off
(h);
+ return
not sg_host_is_on
(h);
}
xbt_dict_t MSG_host_get_properties(sg_host_t host)
{
}
xbt_dict_t MSG_host_get_properties(sg_host_t host)
{