void MailboxImpl::set_receiver(s4u::ActorPtr actor)
{
if (this->permanent_receiver_) {
- std::vector<MailboxImpl*>& mboxes = this->permanent_receiver_->mailboxes;
+ std::vector<MailboxImpl*>& mboxes = this->permanent_receiver_->mailboxes_;
mboxes.erase(std::remove(mboxes.begin(), mboxes.end(), this), mboxes.end());
}
undaemonize();
- while (not mailboxes.empty())
- mailboxes.back()->set_receiver(nullptr);
+ while (not mailboxes_.empty())
+ mailboxes_.back()->set_receiver(nullptr);
}
/* Do all the cleanups from the actor context. Warning, the simcall mechanism was not reignited so doing simcalls in
activity->cancel();
activities_.clear();
- while (not mailboxes.empty())
- mailboxes.back()->set_receiver(nullptr);
-
// Forcefully kill the actor if its host is turned off. Not a HostFailureException because you should not survive that
this->throw_exception(std::make_exception_ptr(ForcefulKillException(host_->is_on() ? "exited" : "host failed")));
}
bool daemon_ = false; /* Daemon actors are automatically killed when the last non-daemon leaves */
unsigned stacksize_; // set to default value in constructor
- std::vector<activity::MailboxImpl*> mailboxes;
+ std::vector<activity::MailboxImpl*> mailboxes_;
friend activity::MailboxImpl;
public: