X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4ebc53f4ea63c0ec84680e5484ad9c9a81c85ff3..9acedb4ebce15cd3399fcad4effb3fb79a0ee5ef:/src/mc/mc_global.cpp diff --git a/src/mc/mc_global.cpp b/src/mc/mc_global.cpp index 9b8ce3c1b4..f85660aa71 100644 --- a/src/mc/mc_global.cpp +++ b/src/mc/mc_global.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2008-2019. 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. */ @@ -35,8 +35,8 @@ #include "src/mc/mc_request.hpp" #include "src/mc/mc_safety.hpp" #include "src/mc/mc_smx.hpp" -#include "src/mc/mc_snapshot.hpp" #include "src/mc/mc_unw.hpp" +#include "src/mc/sosp/mc_snapshot.hpp" #include #endif @@ -175,11 +175,11 @@ double MC_process_clock_get(smx_actor_t process) if (simgrid::mc::processes_time.empty()) return 0; if (process != nullptr) - return simgrid::mc::processes_time[process->pid_]; + return simgrid::mc::processes_time[process->get_pid()]; return -1; } void MC_process_clock_add(smx_actor_t process, double amount) { - simgrid::mc::processes_time[process->pid_] += amount; + simgrid::mc::processes_time[process->get_pid()] += amount; }