Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
end the implementation of Io::test with a new simcall
[simgrid.git] / src / s4u / s4u_Io.cpp
index d02bce1..a95426b 100644 (file)
@@ -76,9 +76,12 @@ bool Io::test()
   if (state_ == State::INITED)
     this->start();
 
-  THROW_UNIMPLEMENTED;
+  if (simcall_io_test(pimpl_)) {
+    state_ = State::FINISHED;
+    return true;
+  }
 
-  // return false
+  return false;
 }
 
 /** @brief Returns the amount of flops that remain to be done */