/* Don't move the whole content since we don't really care about the order */
std::swap(*it, vect->back());
vect->pop_back();
/* Don't move the whole content since we don't really care about the order */
std::swap(*it, vect->back());
vect->pop_back();
/** This process will be terminated automatically when the last non-daemon process finishes */
void ActorImpl::daemonize()
{
/** This process will be terminated automatically when the last non-daemon process finishes */
void ActorImpl::daemonize()
{
smx_activity_t res = issuer->sleep(timeout);
intrusive_ptr_add_ref(res.get());
SIMIX_process_on_exit(process,
smx_activity_t res = issuer->sleep(timeout);
intrusive_ptr_add_ref(res.get());
SIMIX_process_on_exit(process,
auto sleep = static_cast<simgrid::kernel::activity::SleepImpl*>(arg);
if (sleep->surf_sleep)
sleep->surf_sleep->finish(simgrid::kernel::resource::Action::State::FINISHED);
intrusive_ptr_release(sleep);
auto sleep = static_cast<simgrid::kernel::activity::SleepImpl*>(arg);
if (sleep->surf_sleep)
sleep->surf_sleep->finish(simgrid::kernel::resource::Action::State::FINISHED);
intrusive_ptr_release(sleep);