#endif
simix_global->process_to_destroy.push_back(*process);
}
- process->context_->iwannadie = 0;
+ process->context_->iwannadie = false;
simix_global->mutex.unlock();
}
return nullptr;
}
- suspended_ = 1;
+ suspended_ = true;
/* If we are suspending another actor that is waiting on a sync, suspend its synchronization. */
if (this != issuer) {
return nullptr;
} else {
- return SIMIX_execution_start("suspend", 0.0, 1.0, 0.0, this->host_);
+ return SIMIX_execution_start("suspend", "", 0.0, 1.0, 0.0, this->host_);
}
}
if (not suspended_)
return;
- suspended_ = 0;
+ suspended_ = false;
/* resume the synchronization that was blocking the resumed actor. */
if (waiting_synchro)
(issuer->host_ == nullptr ? "(null)" : issuer->host_->get_cname()), process->get_cname(),
process->host_->get_cname());
- process->context_->iwannadie = 1;
- process->blocked_ = 0;
- process->suspended_ = 0;
+ process->context_->iwannadie = true;
+ process->blocked_ = false;
+ process->suspended_ = false;
process->exception = nullptr;
/* destroy the blocking synchro if any */
if (self->suspended_) {
XBT_DEBUG("Hey! I'm suspended.");
xbt_assert(self->exception != nullptr, "Gasp! This exception may be lost by subsequent calls.");
- self->suspended_ = 0;
+ self->suspended_ = false;
self->suspend(self);
}