Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'pikachuyann/simgrid-xbt_random'
[simgrid.git] / src / kernel / context / ContextBoost.hpp
index 687a3c18be4f7b63f61b307c0c378e5d175988fe..8284fc9835f04679906687401c305e0530b9ddc4 100644 (file)
@@ -34,8 +34,6 @@ class BoostContext : public SwappedContext {
 public:
   BoostContext(std::function<void()>&& code, actor::ActorImpl* actor, SwappedContextFactory* factory);
 
-  void swap_into(SwappedContext* to) override;
-
 private:
 #if BOOST_VERSION < 106100
   boost::context::fcontext_t fc_;
@@ -45,7 +43,9 @@ private:
   typedef boost::context::detail::transfer_t arg_type;
 #endif
 
-  static void wrapper(arg_type arg);
+  XBT_ATTRIB_NORETURN static void wrapper(arg_type arg);
+
+  void swap_into_for_real(SwappedContext* to) override;
 };
 
 class BoostContextFactory : public SwappedContextFactory {