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
kill dead code
[simgrid.git]
/
src
/
msg
/
msg_vm.c
diff --git
a/src/msg/msg_vm.c
b/src/msg/msg_vm.c
index
51516da
..
0f078bd
100644
(file)
--- a/
src/msg/msg_vm.c
+++ b/
src/msg/msg_vm.c
@@
-204,8
+204,8
@@
msg_vm_t MSG_vm_create_core(msg_host_t ind_pm, const char *name)
{
/* make sure the VM of the same name does not exit */
{
-
void *
ind_host_tmp = xbt_lib_get_elm_or_null(host_lib, name);
- if (ind_host_tmp) {
+
xbt_dictelm_t
ind_host_tmp = xbt_lib_get_elm_or_null(host_lib, name);
+ if (ind_host_tmp
&& xbt_lib_get_level(ind_host_tmp, SIMIX_HOST_LEVEL) != NULL
) {
XBT_ERROR("host %s already exits", name);
return NULL;
}
@@
-1187,7
+1187,7
@@
static int do_migration(msg_vm_t vm, msg_host_t src_pm, msg_host_t dst_pm)
XBT_DEBUG("wait for reception of the final ACK (i.e. migration has been correctly performed");
msg_task_t task = NULL;
msg_error_t ret = MSG_TIMEOUT;
- while (ret == MSG_TIMEOUT && MSG_host_is_
avail
(dst_pm)) //Wait while you receive the message o
+ while (ret == MSG_TIMEOUT && MSG_host_is_
on
(dst_pm)) //Wait while you receive the message o
ret = MSG_task_receive_with_timeout(&task, ms->mbox_ctl, 10);
xbt_free(ms->mbox_ctl);