X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/795d95bd3584056b40e441e4ca9b935fb0dc7d32..131ea969cf91c332bd533b7e9d67c729149e9b4d:/src/s4u/s4u_Disk.cpp diff --git a/src/s4u/s4u_Disk.cpp b/src/s4u/s4u_Disk.cpp index 153a65c5e4..684cbab8be 100644 --- a/src/s4u/s4u_Disk.cpp +++ b/src/s4u/s4u_Disk.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2019-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. */ @@ -10,9 +10,8 @@ #include "src/kernel/resource/DiskImpl.hpp" namespace simgrid { -namespace xbt { -template class Extendable; -} // namespace xbt + +template class xbt::Extendable; namespace s4u { @@ -25,12 +24,12 @@ double Disk::get_read_bandwidth() const return this->pimpl_->get_read_bandwidth(); } -double Disk::get_write_bandwidth() +double Disk::get_write_bandwidth() const { return pimpl_->get_write_bandwidth(); } -Host* Disk::get_host() +Host* Disk::get_host() const { return pimpl_->get_host(); } @@ -67,7 +66,6 @@ sg_size_t Disk::read(sg_size_t size) IoPtr Disk::write_async(sg_size_t size) { - return IoPtr(io_init(size, Io::OpType::WRITE)->start()); }