Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add an assert in case a platform using cluster routing does not link nodes to links...
[simgrid.git] / src / simix / popping.cpp
index 8e93873..70a30d2 100644 (file)
@@ -44,3 +44,16 @@ void SIMIX_run_kernel(std::function<void()> const* code)
 {
   (*code)();
 }
+
+/** Kernel code for run_blocking
+ *
+ * The implementtion looks a lot like SIMIX_run_kernel ^^
+ *
+ * However, this `run_blocking` is blocking so the process will not be woken
+ * up until `SIMIX_simcall_answer(simcall)`` is called by the kernel.
+ * This means that `code` is responsible for doing this.
+ */
+void SIMIX_run_blocking(std::function<void()> const* code)
+{
+  (*code)();
+}