A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add an assert in case a platform using cluster routing does not link nodes to links...
[simgrid.git]
/
src
/
simix
/
popping.cpp
diff --git
a/src/simix/popping.cpp
b/src/simix/popping.cpp
index
8e93873
..
70a30d2
100644
(file)
--- a/
src/simix/popping.cpp
+++ b/
src/simix/popping.cpp
@@
-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)();
+}