X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/603c44e45e00a577bccb42cf398a924178f17768..1bdbe2db10271b1d1948e1ee0382abcfe622a991:/src/mc/mc_global.cpp diff --git a/src/mc/mc_global.cpp b/src/mc/mc_global.cpp index 128e8772f9..6f985f1f9e 100644 --- a/src/mc/mc_global.cpp +++ b/src/mc/mc_global.cpp @@ -40,10 +40,9 @@ #include "src/mc/mc_record.h" #include "src/mc/mc_protocol.h" -#include "src/mc/mc_client.h" +#include "src/mc/Client.hpp" -XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_global, mc, - "Logging specific to MC (global)"); +XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_global, mc, "Logging specific to MC (global)"); e_mc_mode_t mc_mode; @@ -140,7 +139,7 @@ void MC_run() { mc_mode = MC_MODE_CLIENT; MC_init(); - MC_client_main_loop(); + simgrid::mc::Client::get()->mainLoop(); } void MC_exit(void) @@ -155,10 +154,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_message(message); + ssize_t s = mc_model_checker->process().getChannel().receive(message); if (s == -1) xbt_die("Could not receive message"); if (s != sizeof(message) || message.type != MC_MESSAGE_DEADLOCK_CHECK_REPLY)