#include "src/simix/ActorImpl.hpp"
#include "src/simix/popping_private.hpp"
#include "src/simix/smx_private.hpp"
#include "src/simix/ActorImpl.hpp"
#include "src/simix/popping_private.hpp"
#include "src/simix/smx_private.hpp"
- surf_action_->resume();
+ surf_action_ = host_->pimpl_cpu->sleep(duration);
+ surf_action_->set_data(this);
+ XBT_DEBUG("Create sleep synchronization %p", this);
+ return this;
/* If the host running the synchro failed, notice it. This way, the asking
* actor can be killed if it runs on that host itself */
result = SIMIX_SRC_HOST_FAILURE;
/* If the host running the synchro failed, notice it. This way, the asking
* actor can be killed if it runs on that host itself */
result = SIMIX_SRC_HOST_FAILURE;
simcall->issuer->context_->iwannadie = true;
}
simcall_process_sleep__set__result(simcall, result);
simcall->issuer->context_->iwannadie = true;
}
simcall_process_sleep__set__result(simcall, result);