X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ea74f5d95928a521a588737e81f1de94eef25d19..69659a8281d4aeac3476820299f26a09dd285996:/include/simgrid/simix.hpp diff --git a/include/simgrid/simix.hpp b/include/simgrid/simix.hpp index c9902637d6..fb8addfb3c 100644 --- a/include/simgrid/simix.hpp +++ b/include/simgrid/simix.hpp @@ -8,15 +8,14 @@ #define SIMGRID_SIMIX_HPP #include -#include #include #include #include #include -XBT_PUBLIC void simcall_run_kernel(std::function const& code, - simgrid::kernel::actor::SimcallObserver* observer); +XBT_PUBLIC void simcall_run_answered(std::function const& code, + simgrid::kernel::actor::SimcallObserver* observer); XBT_PUBLIC void simcall_run_blocking(std::function const& code, simgrid::kernel::actor::SimcallObserver* observer); @@ -43,7 +42,7 @@ namespace actor { * you may need to wait for that mutex to be unlocked by its current owner. * Potentially blocking simcall must be issued using simcall_blocking(), right below in this file. */ -template typename std::result_of_t simcall(F&& code, SimcallObserver* observer = nullptr) +template typename std::result_of_t simcall_answered(F&& code, SimcallObserver* observer = nullptr) { // If we are in the maestro, we take the fast path and execute the // code directly without simcall marshalling/unmarshalling/dispatch: @@ -55,7 +54,7 @@ template typename std::result_of_t simcall(F&& code, SimcallObser // conveniently handles the success/failure value for us. using R = typename std::result_of_t; simgrid::xbt::Result result; - simcall_run_kernel([&result, &code] { simgrid::xbt::fulfill_promise(result, std::forward(code)); }, observer); + simcall_run_answered([&result, &code] { simgrid::xbt::fulfill_promise(result, std::forward(code)); }, observer); return result.get(); } @@ -94,12 +93,6 @@ auto simcall_blocking(F&& code, Observer* observer) -> decltype(observer->get_re } } // namespace actor } // namespace kernel - -namespace simix { - -XBT_PUBLIC void unblock(smx_actor_t process); - -} // namespace simix } // namespace simgrid #endif