#else
this->fc_ = boost::context::detail::make_fcontext(stack, smx_context_usable_stack_size, BoostContext::wrapper);
#endif
+
} else {
+ set_maestro(this); // save maestro for run_all()
#if BOOST_VERSION < 105600
this->fc_ = new boost::context::fcontext_t();
#endif
- if (get_maestro() == nullptr)
- set_maestro(this);
}
}
if (not this->stack_)
delete this->fc_;
#endif
- if (this == get_maestro())
- set_maestro(nullptr);
}
void BoostContext::wrapper(BoostContext::arg_type arg)