void_pfn_smxprocess_t cleanup_func,
smx_actor_t simix_process)
{
- xbt_assert(simix_global, "simix is not initialized, please call MSG_init first");
return simix_global->context_factory->create_context(
std::move(code), cleanup_func, simix_process);
}
{
if (this->cleanup_func_)
this->cleanup_func_(this->actor_);
- this->actor_->suspended_ = 0;
+ this->actor_->suspended_ = false;
this->iwannadie = false;
simgrid::simix::simcall([this] { SIMIX_process_cleanup(this->actor_); });