Activity* Io::start()
{
- set_remaining(size_);
- pimpl_ = simix::simcall([this] { return SIMIX_io_start(name_, size_, storage_, type_); });
+ Activity::set_remaining(size_);
+ pimpl_ = simix::simcall([this] {
+ return boost::static_pointer_cast<kernel::activity::IoImpl>(SIMIX_io_start(name_, size_, storage_, type_));
+ });
state_ = State::STARTED;
return this;
}
[this]() { return boost::static_pointer_cast<kernel::activity::IoImpl>(pimpl_)->get_performed_ioops(); });
}
-IoPtr Io::set_io_type(OpType type)
-{
- xbt_assert(state_ == State::INITED, "Cannot change the name of an exec after its start");
- type_ = type;
- return this;
-}
-
void intrusive_ptr_release(simgrid::s4u::Io* i)
{
if (i->refcount_.fetch_sub(1, std::memory_order_release) == 1) {