-/* Copyright (c) 2007-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-2022. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
namespace activity {
class XBT_PUBLIC IoImpl : public ActivityImpl_T<IoImpl> {
- actor::ActorImpl* actor_ = nullptr;
resource::DiskImpl* disk_ = nullptr;
double sharing_penalty_ = 1.0;
sg_size_t size_ = 0;
s4u::Io::OpType type_ = s4u::Io::OpType::READ;
sg_size_t performed_ioops_ = 0;
resource::Action* timeout_detector_ = nullptr;
- s4u::Io* piface_;
+
public:
IoImpl();
- s4u::Io* get_iface() { return piface_; }
- actor::ActorImpl* get_actor() { return actor_; }
IoImpl& set_sharing_penalty(double sharing_penalty);
IoImpl& set_timeout(double timeout) override;
void post() override;
void set_exception(actor::ActorImpl* issuer) override;
void finish() override;
- static void wait_any_for(actor::ActorImpl* issuer, const std::vector<IoImpl*>& ios, double timeout);
};
} // namespace activity
} // namespace kernel