X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c1308e442a872daee6dcd672b5abddf207b39682..b9a15f078a62e397f321dfb570254652785cc377:/include/simgrid/simix.hpp diff --git a/include/simgrid/simix.hpp b/include/simgrid/simix.hpp index ad48794a4b..99d241054f 100644 --- a/include/simgrid/simix.hpp +++ b/include/simgrid/simix.hpp @@ -21,6 +21,16 @@ #include XBT_PUBLIC(void) simcall_run_kernel(std::function const& code); + +/** Execute some code in the kernel and block + * + * run_blocking() is a generic blocking simcall. It is given a callback + * which is executed immediately in the SimGrid kernel. The callback is + * responsible for setting the suitable logic for waking up the process + * when needed. + * + * @ref simix::kernelSync() is a higher level wrapper for this. + */ XBT_PUBLIC(void) simcall_run_blocking(std::function const& code); template inline @@ -45,7 +55,7 @@ namespace simix { * of the operation with respect to other simcalls. */ template -typename std::result_of::type kernel(F&& code) +typename std::result_of::type kernelImmediate(F&& code) { // If we are in the maestro, we take the fast path and execute the // code directly without simcall mashalling/unmarshalling/dispatch: