-/* Copyright (c) 2006-2018. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2006-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. */
IoPtr Storage::io_init(sg_size_t size, Io::OpType type)
{
- IoPtr res = IoPtr(new Io(size, type));
- res->storage_ = this;
- return res;
+ return IoPtr(new Io(this, size, type));
}
IoPtr Storage::read_async(sg_size_t size)
{
-
IoPtr res = io_init(size, Io::OpType::READ);
res->start();
return res;