X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/be41f8ae755d1edc1e832dea16b045d3885c3f4e..09e1d23365995a569c73ae4e1067e0f7c85efc58:/src/simix/smx_global.cpp diff --git a/src/simix/smx_global.cpp b/src/simix/smx_global.cpp index 1291451690..f0b03adfdb 100644 --- a/src/simix/smx_global.cpp +++ b/src/simix/smx_global.cpp @@ -163,7 +163,7 @@ simgrid::config::Flag breakpoint{"simix/breakpoint", } } -static std::function maestro_code; +static simgrid::simix::ActorCode maestro_code; void SIMIX_set_maestro(void (*code)(void*), void* data) { #ifdef _WIN32 @@ -397,7 +397,7 @@ void SIMIX_run() do { XBT_DEBUG("New Schedule Round; size(queue)=%zu", simix_global->process_to_run.size()); - if (simgrid::simix::breakpoint >= 0.0 && time >= simgrid::simix::breakpoint) { + if (simgrid::simix::breakpoint >= 0.0 && surf_get_clock() >= simgrid::simix::breakpoint) { XBT_DEBUG("Breakpoint reached (%g)", simgrid::simix::breakpoint.get()); simgrid::simix::breakpoint = -1.0; #ifdef SIGTRAP