X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a6842b518fd3973d810bae84ad5110c26b20953b..603c44e45e00a577bccb42cf398a924178f17768:/src/mc/mc_client.cpp diff --git a/src/mc/mc_client.cpp b/src/mc/mc_client.cpp index 07e65fb66c..a173b8f884 100644 --- a/src/mc/mc_client.cpp +++ b/src/mc/mc_client.cpp @@ -19,15 +19,14 @@ #include "src/mc/mc_client.h" // We won't need those once the separation MCer/MCed is complete: -#include "src/mc/mc_mmalloc.h" #include "src/mc/mc_ignore.h" #include "src/mc/mc_private.h" // MC_deadlock_check() #include "src/mc/mc_smx.h" -extern "C" { - XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_client, mc, "MC client logic"); +extern "C" { + mc_client_t mc_client; void MC_client_init(void) @@ -63,7 +62,7 @@ void MC_client_init(void) mc_client->active = 1; // Waiting for the model-checker: - if (ptrace(PTRACE_TRACEME, 0, NULL, NULL) == -1 || raise(SIGSTOP) != 0) + if (ptrace(PTRACE_TRACEME, 0, nullptr, NULL) == -1 || raise(SIGSTOP) != 0) xbt_die("Could not wait for the model-checker"); MC_client_handle_messages(); } @@ -149,7 +148,7 @@ void MC_client_main_loop(void) while (1) { MC_protocol_send_simple_message(mc_client->fd, MC_MESSAGE_WAITING); MC_client_handle_messages(); - MC_wait_for_requests(); + simgrid::mc::wait_for_requests(); } }