A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update .mailmap.
[simgrid.git]
/
src
/
kernel
/
activity
/
IoImpl.hpp
diff --git
a/src/kernel/activity/IoImpl.hpp
b/src/kernel/activity/IoImpl.hpp
index d3b84fd561d04bf70cd7ca0415602bb5566897d2..6562f2e3931a9a230de0c70cacc196f9770ac517 100644
(file)
--- a/
src/kernel/activity/IoImpl.hpp
+++ b/
src/kernel/activity/IoImpl.hpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2007-202
1
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-202
3
. 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. */
/* 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. */
@@
-9,28
+9,30
@@
#include "src/kernel/activity/ActivityImpl.hpp"
#include <simgrid/s4u/Io.hpp>
#include "src/kernel/activity/ActivityImpl.hpp"
#include <simgrid/s4u/Io.hpp>
-namespace simgrid {
-namespace kernel {
-namespace activity {
+namespace simgrid::kernel::activity {
class XBT_PUBLIC IoImpl : public ActivityImpl_T<IoImpl> {
class XBT_PUBLIC IoImpl : public ActivityImpl_T<IoImpl> {
+ s4u::Host* host_ = nullptr;
resource::DiskImpl* disk_ = nullptr;
resource::DiskImpl* disk_ = nullptr;
+ s4u::Host* dst_host_ = nullptr;
+ resource::DiskImpl* dst_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;
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();
public:
IoImpl();
- s4u::Io* get_iface() { return piface_; }
IoImpl& set_sharing_penalty(double sharing_penalty);
IoImpl& set_sharing_penalty(double sharing_penalty);
- IoImpl& set_timeout(double timeout) override;
IoImpl& set_size(sg_size_t size);
IoImpl& set_type(s4u::Io::OpType type);
IoImpl& set_disk(resource::DiskImpl* disk);
IoImpl& set_size(sg_size_t size);
IoImpl& set_type(s4u::Io::OpType type);
IoImpl& set_disk(resource::DiskImpl* disk);
+ IoImpl& set_host(s4u::Host* host);
+ s4u::Host* get_host() const { return host_; }
+ IoImpl& set_dst_disk(resource::DiskImpl* disk);
+ IoImpl& set_dst_host(s4u::Host* host);
+ s4u::Host* get_dst_host() const { return dst_host_; }
IoImpl& update_sharing_penalty(double sharing_penalty);
IoImpl& update_sharing_penalty(double sharing_penalty);
@@
-38,12
+40,9
@@
public:
resource::DiskImpl* get_disk() const { return disk_; }
IoImpl* start();
resource::DiskImpl* get_disk() const { return disk_; }
IoImpl* start();
- void
post(
) override;
+ void
set_exception(actor::ActorImpl* issuer
) override;
void finish() override;
void finish() override;
- static void wait_any_for(actor::ActorImpl* issuer, const std::vector<IoImpl*>& ios, double timeout);
};
};
-} // namespace activity
-} // namespace kernel
-} // namespace simgrid
+} // namespace simgrid::kernel::activity
#endif
#endif