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
[mc] Encapsulate model-checker/model-checker communications classes
[simgrid.git]
/
src
/
mc
/
mc_global.cpp
diff --git
a/src/mc/mc_global.cpp
b/src/mc/mc_global.cpp
index
128e877
..
7c33396
100644
(file)
--- a/
src/mc/mc_global.cpp
+++ b/
src/mc/mc_global.cpp
@@
-140,7
+140,7
@@
void MC_run()
{
mc_mode = MC_MODE_CLIENT;
MC_init();
-
MC_client_main_l
oop();
+
simgrid::mc::Client::get()->mainL
oop();
}
void MC_exit(void)
@@
-155,10
+155,10
@@
int MC_deadlock_check()
{
if (mc_mode == MC_MODE_SERVER) {
int res;
- if ((res = mc_model_checker->process().
send_message
(MC_MESSAGE_DEADLOCK_CHECK)))
+ if ((res = mc_model_checker->process().
getChannel().send
(MC_MESSAGE_DEADLOCK_CHECK)))
xbt_die("Could not check deadlock state");
s_mc_int_message_t message;
- ssize_t s = mc_model_checker->process().
receive_messag
e(message);
+ ssize_t s = mc_model_checker->process().
getChannel().receiv
e(message);
if (s == -1)
xbt_die("Could not receive message");
if (s != sizeof(message) || message.type != MC_MESSAGE_DEADLOCK_CHECK_REPLY)