Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
activity::CommImpl: stick to our naming standards for the fields
[simgrid.git] / src / kernel / activity / IoImpl.hpp
index 71f1a45..456b325 100644 (file)
@@ -1,4 +1,4 @@
-/* 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. */
@@ -15,11 +15,21 @@ namespace activity {
 
 class XBT_PUBLIC IoImpl : public ActivityImpl {
 public:
+  ~IoImpl() override;
+  explicit IoImpl(std::string name, resource::Action* surf_action, s4u::Storage* storage);
+
   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;
 };
 }
 }