X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/96cedde3cdbc0b8ffc3f096a1b65d021b0226f99..debe4e5871c0c3d1c714bbb1bd28ba7147454aa5:/src/mc/remote/Client.cpp diff --git a/src/mc/remote/Client.cpp b/src/mc/remote/Client.cpp index 7db16462b7..7cbff1f4b0 100644 --- a/src/mc/remote/Client.cpp +++ b/src/mc/remote/Client.cpp @@ -3,28 +3,17 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include "src/mc/remote/Client.hpp" +#include "src/internal_config.h" +#include + #include #include #include - #include #include #include -#include -#include -#include - -#include - -#include "src/internal_config.h" - -#include "src/mc/mc_request.hpp" -#include "src/mc/remote/Client.hpp" -#include "src/mc/remote/mc_protocol.h" - -#include "src/smpi/include/private.hpp" - // We won't need those once the separation MCer/MCed is complete: #include "src/mc/mc_smx.hpp" @@ -83,7 +72,7 @@ Client* Client::initialize() return instance_.get(); } -void Client::handleDeadlockCheck(s_mc_message_t* msg) +void Client::handleDeadlockCheck(s_mc_message_t*) { bool deadlock = false; if (not simix_global->process_list.empty()) { @@ -99,7 +88,7 @@ void Client::handleDeadlockCheck(s_mc_message_t* msg) s_mc_message_int_t answer{MC_MESSAGE_DEADLOCK_CHECK_REPLY, deadlock}; xbt_assert(channel_.send(answer) == 0, "Could not send response"); } -void Client::handleContinue(s_mc_message_t* msg) +void Client::handleContinue(s_mc_message_t*) { /* Nothing to do */ } @@ -187,7 +176,7 @@ void Client::mainLoop() } } -void Client::reportAssertionFailure(const char* description) +void Client::reportAssertionFailure() { if (channel_.send(MC_MESSAGE_ASSERTION_FAILED)) xbt_die("Could not send assertion to model-checker"); @@ -260,7 +249,7 @@ void Client::declareStack(void* stack, size_t size, smx_actor_t process, ucontex region.block = ((char*)stack - (char*)heap->heapbase) / BLOCKSIZE + 1; #if HAVE_SMPI if (smpi_privatize_global_variables == SmpiPrivStrategies::MMAP && process) - region.process_index = process->pid_ - 1; + region.process_index = process->get_pid() - 1; else #endif region.process_index = -1;