Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New function: s4u::Activity::test()
[simgrid.git] / include / simgrid / s4u / Io.hpp
index 17fd1f2..2bbdb75 100644 (file)
 namespace simgrid {
 namespace s4u {
 
+/** I/O Activity, representing the asynchronous disk access.
+ *
+ * They are generated from simgrid::s4u::Storage::read() and simgrid::s4u::Storage::write().
+ */
+
 class XBT_PUBLIC Io : public Activity {
 public:
   enum class OpType { READ, WRITE };
@@ -24,7 +29,7 @@ private:
 public:
   friend XBT_PUBLIC void intrusive_ptr_release(simgrid::s4u::Io* i);
   friend XBT_PUBLIC void intrusive_ptr_add_ref(simgrid::s4u::Io* i);
-  friend Storage; // Factory of IOs
+  friend simgrid::s4u::Storage; // Factory of IOs
 
   ~Io() = default;
 
@@ -32,6 +37,7 @@ public:
   Activity* wait() override;
   Activity* wait(double timeout) override;
   Activity* cancel() override;
+  bool test() override;
 
   double get_remaining() override;
   sg_size_t get_performed_ioops();