-/* Copyright (c) 2018-2020. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2018-2021. 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. */
namespace simgrid {
namespace s4u {
-xbt::signal<void(Io const&, Actor const&)> Io::on_start;
-xbt::signal<void(Io const&, Actor const&)> Io::on_completion;
+xbt::signal<void(Io const&)> Io::on_start;
+xbt::signal<void(Io const&)> Io::on_completion;
Io::Io(sg_disk_t disk, sg_size_t size, OpType type) : disk_(disk), size_(size), type_(type)
{
pimpl_->suspend();
state_ = State::STARTED;
- on_start(*this, *Actor::self());
+ on_start(*this);
return this;
}
state_ = State::FINISHED;
this->release_dependencies();
- on_completion(*this, *Actor::self());
+ on_completion(*this);
return this;
}