X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ab98ac80806c788b35c414a429f80345663e38a5..a5ebe49265afa41c01e8386c47a1a94a136288d9:/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 110a27d363..7a80fe5d05 100644 --- a/include/simgrid/simix/blocking_simcall.hpp +++ b/include/simgrid/simix/blocking_simcall.hpp @@ -46,12 +46,10 @@ XBT_PUBLIC void unblock(smx_actor_t process); template auto kernel_sync(F code) -> decltype(code().get()) { using T = decltype(code().get()); - if (SIMIX_is_maestro()) - xbt_die("Can't execute blocking call in kernel mode"); + xbt_assert(not SIMIX_is_maestro(), "Cannot execute blocking call in kernel mode"); smx_actor_t self = SIMIX_process_self(); simgrid::xbt::Result result; - simcall_run_blocking( [&result, self, &code] { try {