X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c3066090245b1d56a9927723543cbc93dcb0d9ee..2d37e348a09783cda723c7019640ee69de168324:/src/kernel/context/Context.hpp diff --git a/src/kernel/context/Context.hpp b/src/kernel/context/Context.hpp index 06bd27aa8a..1cf7104473 100644 --- a/src/kernel/context/Context.hpp +++ b/src/kernel/context/Context.hpp @@ -104,11 +104,12 @@ public: ~StopRequest(); const char* what() const noexcept { return msg_.c_str(); } + static void do_throw(); + static bool try_n_catch(std::function try_block); + private: std::string msg_ = std::string("Actor killed."); }; -XBT_PUBLIC void throw_stoprequest(); -XBT_PUBLIC bool try_n_catch_stoprequest(std::function try_block); /* This allows Java to hijack the context factory (Java induces factories of factory :) */ typedef ContextFactory* (*ContextFactoryInitializer)();