X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ad9d9459261f6f55f69edc333689ad86f2a9f229..a15797ea55151ddfdbae48147e74159efe01b411:/src/simix/popping_bodies.cpp diff --git a/src/simix/popping_bodies.cpp b/src/simix/popping_bodies.cpp index 5a5ef80273..74b4dcfec0 100644 --- a/src/simix/popping_bodies.cpp +++ b/src/simix/popping_bodies.cpp @@ -13,6 +13,7 @@ * That's not about http://en.wikipedia.org/wiki/Poop, despite the odor :) */ +#include #include "smx_private.h" #include "src/mc/mc_forward.hpp" #include "xbt/ex.h" @@ -436,8 +437,8 @@ inline static void simcall_BODY_set_category(smx_synchro_t synchro, const char* return simcall(SIMCALL_SET_CATEGORY, synchro, category); } -inline static void simcall_BODY_run_kernel(void* code) { +inline static void simcall_BODY_run_kernel(std::function const* code) { /* Go to that function to follow the code flow through the simcall barrier */ if (0) SIMIX_run_kernel(code); - return simcall(SIMCALL_RUN_KERNEL, code); + return simcall const*>(SIMCALL_RUN_KERNEL, code); }/** @endcond */