// BoostContext
-BoostContext::BoostContext(std::function<void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process,
+BoostContext::BoostContext(std::function<void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t actor,
SwappedContextFactory* factory)
- : SwappedContext(std::move(code), cleanup_func, process, factory)
+ : SwappedContext(std::move(code), cleanup_func, actor, factory)
{
/* if the user provided a function for the process then use it, otherwise it is the context for maestro */
#else
void* stack = get_stack();
#endif
- ASAN_ONLY(this->asan_stack_ = stack);
#if BOOST_VERSION < 106100
this->fc_ = boost::context::make_fcontext(stack, smx_context_usable_stack_size, BoostContext::wrapper);
#else
#endif
} else {
- set_maestro(this); // save maestro for run_all()
#if BOOST_VERSION < 105600
this->fc_ = new boost::context::fcontext_t();
#endif
BoostContext::~BoostContext()
{
#if BOOST_VERSION < 105600
- if (not this->stack_)
+ if (not get_stack())
delete this->fc_;
#endif
}