X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d98cdc629ec5f6d20e852a7ede11ac44fa843e9d..207e186001374b77093f4064a2a25a9c626a989d:/src/kernel/context/Context.hpp diff --git a/src/kernel/context/Context.hpp b/src/kernel/context/Context.hpp index e6f425b30d..c543f410cc 100644 --- a/src/kernel/context/Context.hpp +++ b/src/kernel/context/Context.hpp @@ -34,6 +34,7 @@ public: virtual Context* create_maestro(std::function code, smx_actor_t process); virtual void run_all() = 0; + /** @brief Returns the current context of this thread. */ virtual Context* self(); std::string const& name() const { return name_; } @@ -146,7 +147,6 @@ XBT_PRIVATE void *SIMIX_context_stack_new(); XBT_PRIVATE void SIMIX_context_stack_delete(void *stack); XBT_PUBLIC void SIMIX_context_set_current(smx_context_t context); -XBT_PRIVATE smx_context_t SIMIX_context_get_current(); XBT_PUBLIC int SIMIX_process_get_maxpid();