-/* Copyright (c) 2006-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2006-2022. 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. */
{
bool comm_ready = false;
if (not pimpl_->empty()) {
- comm_ready = pimpl_->front()->state_ == kernel::activity::State::DONE;
+ comm_ready = pimpl_->front()->get_state() == kernel::activity::State::DONE;
} else if (pimpl_->is_permanent() && pimpl_->has_some_done_comm()) {
- comm_ready = pimpl_->done_front()->state_ == kernel::activity::State::DONE;
+ comm_ready = pimpl_->done_front()->get_state() == kernel::activity::State::DONE;
}
return comm_ready;
}