xbt_assert((host != NULL), "Invalid parameters");
- if (h->isOff()) {
+ if (h->is_off()) {
simgrid::surf::Host* surf_host = h->extension<simgrid::surf::Host>();
surf_host->turnOn();
xbt_assert((host != NULL), "Invalid parameters");
- if (h->isOn()) {
+ if (h->is_on()) {
simgrid::surf::Host* surf_host = h->extension<simgrid::surf::Host>();
surf_host->turnOff();
(int)synchro->state);
}
/* check if the host is down */
- if (simcall->issuer->host->isOff()) {
+ if (simcall->issuer->host->is_off()) {
simcall->issuer->context->iwannadie = 1;
}
{
if (synchro->type == SIMIX_SYNC_EXECUTE && /* FIMXE: handle resource failure
* for parallel tasks too */
- synchro->execution.host->isOff()) {
+ synchro->execution.host->is_off()) {
/* If the host running the synchro failed, notice it so that the asking
* process can be killed if it runs on that host itself */
synchro->state = SIMIX_FAILED;