- if (false) /* Go to that function to follow the code flow through the simcall barrier */
- SIMIX_run_kernel(&code);
- simcall<void, std::function<void()> const*>(simgrid::simix::Simcall::RUN_BLOCKING, &code);
+ // The function `code` is called in kernel mode (either because we are already in maestor or after a context switch)
+ // BUT simcall_answer IS NOT CALLED
+ simcall(simgrid::simix::Simcall::RUN_BLOCKING, code);