X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b5f291a286dc3084e91889db196fa6e1f69fc4b8..39c935d6d5ee86d153f6f7e6a10d723ae7c57f6f:/src/mc/remote/AppSide.cpp diff --git a/src/mc/remote/AppSide.cpp b/src/mc/remote/AppSide.cpp index 5dfd6fd9c0..8c3cb1db6e 100644 --- a/src/mc/remote/AppSide.cpp +++ b/src/mc/remote/AppSide.cpp @@ -1,10 +1,11 @@ -/* Copyright (c) 2015-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2015-2021. The SimGrid Team. All rights reserved. */ /* 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/AppSide.hpp" #include "src/internal_config.h" +#include "src/kernel/actor/ActorImpl.hpp" #include #include @@ -89,7 +90,7 @@ void AppSide::handle_continue(const s_mc_message_t*) const } void AppSide::handle_simcall(const s_mc_message_simcall_handle_t* message) const { - smx_actor_t process = SIMIX_process_from_PID(message->pid); + kernel::actor::ActorImpl* process = kernel::actor::ActorImpl::by_PID(message->pid); xbt_assert(process != nullptr, "Invalid pid %lu", message->pid); process->simcall_handle(message->value); if (channel_.send(MessageType::WAITING)) @@ -98,7 +99,7 @@ void AppSide::handle_simcall(const s_mc_message_simcall_handle_t* message) const void AppSide::handle_actor_enabled(const s_mc_message_actor_enabled_t* msg) const { - bool res = simgrid::mc::actor_is_enabled(SIMIX_process_from_PID(msg->aid)); + bool res = simgrid::mc::actor_is_enabled(kernel::actor::ActorImpl::by_PID(msg->aid)); s_mc_message_int_t answer{MessageType::ACTOR_ENABLED_REPLY, res}; channel_.send(answer); }