X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c0950ef9f902ba40a2c05ca8748acecb3085e752..01beddc9270eba3a6dff3e3eb6d9a8c4a9f87780:/src/kernel/activity/SynchroExec.cpp diff --git a/src/kernel/activity/SynchroExec.cpp b/src/kernel/activity/SynchroExec.cpp index 15d9a21a17..a9d0656256 100644 --- a/src/kernel/activity/SynchroExec.cpp +++ b/src/kernel/activity/SynchroExec.cpp @@ -11,12 +11,12 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_process); -simgrid::kernel::activity::Exec::Exec(const char*name, sg_host_t hostarg) +simgrid::kernel::activity::Exec::Exec(const char*name, sg_host_t host) : + host_(host) { if (name) this->name = name; this->state = SIMIX_RUNNING; - this->host = hostarg; } simgrid::kernel::activity::Exec::~Exec() @@ -50,7 +50,7 @@ double simgrid::kernel::activity::Exec::remains() void simgrid::kernel::activity::Exec::post() { - if (host && host->isOff()) {/* FIMXE: handle resource failure for parallel tasks too */ + if (host_ && host_->isOff()) {/* FIXME: handle resource failure for parallel tasks too */ /* If the host running the synchro failed, notice it. This way, the asking * process can be killed if it runs on that host itself */ state = SIMIX_FAILED;