static void smx_ctx_sysv_free(smx_context_t context) { if (context) { SIMIX_context_stack_delete(((smx_ctx_sysv_t)context)->stack); } smx_ctx_base_free(context); }
BoostContext::~BoostContext() { #if HAVE_BOOST_CONTEXTS == 1 if (!this->stack_) delete this->fc_; #endif if (this == maestro_context_) maestro_context_ = nullptr; SIMIX_context_stack_delete(this->stack_); }
static void smx_ctx_boost_free(smx_context_t c) { smx_ctx_boost_t context = (smx_ctx_boost_t) c; if (!context) return; #if HAVE_BOOST_CONTEXT == 1 if (!context->stack) delete context->fc; #endif if ((smx_ctx_boost_t) c == boost_maestro_context) boost_maestro_context = nullptr; SIMIX_context_stack_delete(context->stack); smx_ctx_base_free(c); }