Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove assert on hot path.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 3 May 2018 18:53:39 +0000 (20:53 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 3 May 2018 18:53:52 +0000 (20:53 +0200)
include/simgrid/simix.hpp

index ff4625b..ed5e128 100644 (file)
@@ -63,7 +63,6 @@ typename std::result_of<F()>::type kernelImmediate(F&& code)
   typedef typename std::result_of<F()>::type R;
   simgrid::xbt::Result<R> result;
   simcall_run_kernel([&]{
   typedef typename std::result_of<F()>::type R;
   simgrid::xbt::Result<R> result;
   simcall_run_kernel([&]{
-    xbt_assert(SIMIX_is_maestro(), "Not in maestro");
     simgrid::xbt::fulfillPromise(result, std::forward<F>(code));
   });
   return result.get();
     simgrid::xbt::fulfillPromise(result, std::forward<F>(code));
   });
   return result.get();