X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/88fad0aaff9eb463f048bfdfe4ad6218aba44ddb..4052b6d9960bd9792127d006c4f359b946cb7baa:/include/simgrid/simix/blocking_simcall.hpp?ds=sidebyside diff --git a/include/simgrid/simix/blocking_simcall.hpp b/include/simgrid/simix/blocking_simcall.hpp index ccfc8a1e5a..dcc7b1d87c 100644 --- a/include/simgrid/simix/blocking_simcall.hpp +++ b/include/simgrid/simix/blocking_simcall.hpp @@ -153,8 +153,7 @@ auto kernelAsync(F code) typedef decltype(code().get()) T; // Execute the code in the kernel and get the kernel future: - simgrid::kernel::Future future = - simgrid::simix::kernelImmediate(std::move(code)); + simgrid::kernel::Future future = simgrid::simix::simcall(std::move(code)); // Wrap the kernel future in a actor future: return simgrid::simix::Future(std::move(future));