X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6..414839787a24ee470f3124f95659a5f6569a2cd5:/src/kernel/context/ContextRaw.hpp diff --git a/src/kernel/context/ContextRaw.hpp b/src/kernel/context/ContextRaw.hpp index a016e98e45..dfa2c03281 100644 --- a/src/kernel/context/ContextRaw.hpp +++ b/src/kernel/context/ContextRaw.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -11,13 +11,11 @@ #include #include -#include +#include "src/xbt/parmap.hpp" #include "src/kernel/context/ContextSwapped.hpp" -namespace simgrid { -namespace kernel { -namespace context { +namespace simgrid::kernel::context { /** @brief Fast context switching inspired from SystemV ucontexts. * @@ -28,21 +26,17 @@ class RawContext : public SwappedContext { public: RawContext(std::function&& code, actor::ActorImpl* actor, SwappedContextFactory* factory); - void swap_into(SwappedContext* to) override; - private: /** pointer to top the stack stack */ void* stack_top_ = nullptr; - static void wrapper(RawContext* context); + void swap_into_for_real(SwappedContext* to) override; }; class RawContextFactory : public SwappedContextFactory { public: RawContext* create_context(std::function&& code, actor::ActorImpl* actor) override; }; -} // namespace context -} // namespace kernel -} // namespace simgrid +} // namespace simgrid::kernel::context #endif