-/* Copyright (c) 2007-2018. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-2019. 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 {
- ~IoImpl() override;
-
public:
+ ~IoImpl() override;
explicit IoImpl(std::string name, resource::Action* surf_action, s4u::Storage* storage);
-public:
void suspend() override;
void resume() override;
void post() override;
void cancel();
double get_remaining();
+ sg_size_t get_performed_ioops() { return performed_ioops_; }
s4u::Storage* storage_ = nullptr;
simgrid::kernel::resource::Action* surf_action_ = nullptr;
-
+ sg_size_t performed_ioops_ = 0;
static simgrid::xbt::signal<void(kernel::activity::IoImplPtr)> on_creation;
static simgrid::xbt::signal<void(kernel::activity::IoImplPtr)> on_completion;
};