-void BoostContext::smx_ctx_boost_wrapper(BoostContext::ctx_arg_type arg)
-{
-#if BOOST_VERSION < 106100
- BoostContext* context = reinterpret_cast<BoostContext*>(arg);
-#else
- static_cast<BoostContext**>(arg.data)[0]->fc_ = arg.fctx;
- BoostContext* context = static_cast<BoostContext**>(arg.data)[1];
-#endif
- (*context)();
- context->stop();
-}
-
-inline void BoostContext::smx_ctx_boost_jump_fcontext(BoostContext* from, BoostContext* to)
-{
-#if BOOST_VERSION < 105600
- boost::context::jump_fcontext(from->fc_, to->fc_, reinterpret_cast<intptr_t>(to));
-#elif BOOST_VERSION < 106100
- boost::context::jump_fcontext(&from->fc_, to->fc_, reinterpret_cast<intptr_t>(to));
-#else
- BoostContext* ctx[2] = {from, to};
- boost::context::detail::transfer_t arg = boost::context::detail::jump_fcontext(to->fc_, ctx);
- static_cast<BoostContext**>(arg.data)[0]->fc_ = arg.fctx;
-#endif
-}
+bool BoostContext::parallel_ = false;
+simgrid::xbt::Parmap<smx_actor_t>* BoostContext::parmap_ = nullptr;
+uintptr_t BoostContext::threads_working_ = 0;
+xbt_os_thread_key_t BoostContext::worker_id_key_;
+unsigned long BoostContext::process_index_ = 0;
+BoostContext* BoostContext::maestro_context_ = nullptr;
+std::vector<BoostContext*> BoostContext::workers_context_;