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
use namespaces for sake of readability
[simgrid.git]
/
src
/
kernel
/
activity
/
IoImpl.hpp
diff --git
a/src/kernel/activity/IoImpl.hpp
b/src/kernel/activity/IoImpl.hpp
index
71f1a45
..
b1275e3
100644
(file)
--- a/
src/kernel/activity/IoImpl.hpp
+++ b/
src/kernel/activity/IoImpl.hpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2007-201
8
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-201
9
. 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. */
@@
-8,6
+8,7
@@
#include "src/kernel/activity/ActivityImpl.hpp"
#include "surf/surf.hpp"
#include "src/kernel/activity/ActivityImpl.hpp"
#include "surf/surf.hpp"
+#include <simgrid/s4u/Io.hpp>
namespace simgrid {
namespace kernel {
namespace simgrid {
namespace kernel {
@@
-15,11
+16,19
@@
namespace activity {
class XBT_PUBLIC IoImpl : public ActivityImpl {
public:
class XBT_PUBLIC IoImpl : public ActivityImpl {
public:
- void suspend() override;
- void resume() override;
+ ~IoImpl() override;
+ explicit IoImpl(std::string name, surf::StorageImpl* storage);
+
+ void start(sg_size_t size, simgrid::s4u::Io::OpType type);
void post() override;
void post() override;
+ void cancel();
+ double get_remaining();
+ sg_size_t get_performed_ioops() { return performed_ioops_; }
- simgrid::kernel::resource::Action* surf_action_ = nullptr;
+ surf::StorageImpl* storage_ = nullptr;
+ sg_size_t performed_ioops_ = 0;
+ static simgrid::xbt::signal<void(kernel::activity::IoImplPtr)> on_start;
+ static simgrid::xbt::signal<void(kernel::activity::IoImplPtr)> on_completion;
};
}
}
};
}
}