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
Add convenient debug function on conditions and use it in simix.
[simgrid.git]
/
src
/
msg
/
msg_mailbox.c
diff --git
a/src/msg/msg_mailbox.c
b/src/msg/msg_mailbox.c
index
22c8fb4
..
2dddabf
100644
(file)
--- a/
src/msg/msg_mailbox.c
+++ b/
src/msg/msg_mailbox.c
@@
-214,9
+214,12
@@
MSG_mailbox_get_task_ext(msg_mailbox_t mailbox, m_task_t * task,
}
}
}
}
- xbt_assert1(!MSG_mailbox_get_cond(mailbox),
-
"A process is already blocked on the channel %s",
+ if (MSG_mailbox_get_cond(mailbox)) {
+
CRITICAL1(
"A process is already blocked on the channel %s",
MSG_mailbox_get_alias(mailbox));
MSG_mailbox_get_alias(mailbox));
+ SIMIX_cond_display_info(MSG_mailbox_get_cond(mailbox));
+ xbt_die("Go fix your code!");
+ }
cond = SIMIX_cond_init();
cond = SIMIX_cond_init();