Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
finish the API under the new format
[simgrid.git] / include / simgrid / s4u / Io.hpp
index c9d55d6..06f7e90 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2017-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2017-2020. 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. */
@@ -9,7 +9,6 @@
 #include <simgrid/forward.h>
 #include <simgrid/s4u/Activity.hpp>
 
-#include <atomic>
 #include <string>
 
 namespace simgrid {
@@ -29,15 +28,12 @@ private:
   Disk* disk_       = nullptr;
   sg_size_t size_   = 0;
   OpType type_      = OpType::READ;
-  std::atomic_int_fast32_t refcount_{0};
 
   explicit Io(sg_storage_t storage, sg_size_t size, OpType type);
   explicit Io(sg_disk_t disk, sg_size_t size, OpType type);
 
 public:
 #ifndef DOXYGEN
-  friend XBT_PUBLIC void intrusive_ptr_release(simgrid::s4u::Io* i);
-  friend XBT_PUBLIC void intrusive_ptr_add_ref(simgrid::s4u::Io* i);
   friend Disk;    // Factory of IOs
   friend Storage; // Factory of IOs
 #endif
@@ -51,7 +47,7 @@ public:
   bool test() override;
 
   double get_remaining() override;
-  sg_size_t get_performed_ioops();
+  sg_size_t get_performed_ioops() const;
 };
 
 } // namespace s4u