Prevents confusion with Comm::set_payload_size.
SimGrid (3.32.1) not released yet (target december 22)
+S4U:
+ - Activity::set_remaining() is not public anymore. Use for example
+ Comm::set_payload_size() to change the size of the simulated data.
+
----------------------------------------------------------------------------
SimGrid (3.32) October 3. 2022.
static std::set<Activity*>* vetoed_activities_;
+ /** Set the [remaining] amount of work that this Activity will entail
+ *
+ * It is forbidden to change the amount of work once the Activity is started */
+ Activity* set_remaining(double remains);
+
private:
static xbt::signal<void(Activity&)> on_veto;
static xbt::signal<void(Activity const&)> on_completion;
/** Get the remaining amount of work that this Activity entails. When it's 0, it's done. */
virtual double get_remaining() const;
- /** Set the [remaining] amount of work that this Activity will entail
- *
- * It is forbidden to change the amount of work once the Activity is started */
- Activity* set_remaining(double remains);
double get_start_time() const;
double get_finish_time() const;
CommPtr Comm::set_payload_size(uint64_t bytes)
{
- Activity::set_remaining(bytes);
+ set_remaining(bytes);
if (pimpl_) {
boost::static_pointer_cast<kernel::activity::CommImpl>(pimpl_)->set_size(bytes);
}
kernel::actor::simcall_answered([this, flops_amount] {
boost::static_pointer_cast<kernel::activity::ExecImpl>(pimpl_)->set_flops_amount(flops_amount);
});
- Activity::set_remaining(flops_amount);
+ set_remaining(flops_amount);
return this;
}
xbt_assert(state_ == State::INITED || state_ == State::STARTING, "Cannot set size once the Io is started");
kernel::actor::simcall_answered(
[this, size] { boost::static_pointer_cast<kernel::activity::IoImpl>(pimpl_)->set_size(size); });
- Activity::set_remaining(size);
+ set_remaining(size);
return this;
}