X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/59251ff676c562b79573e3561166e4351e4ad11e..d236809e6149a03ef3e53599458f51c98f79f94d:/src/s4u/s4u_Mailbox.cpp diff --git a/src/s4u/s4u_Mailbox.cpp b/src/s4u/s4u_Mailbox.cpp index 71e00875a7..eda04e7c2a 100644 --- a/src/s4u/s4u_Mailbox.cpp +++ b/src/s4u/s4u_Mailbox.cpp @@ -1,4 +1,4 @@ -/* 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. */ @@ -58,10 +58,10 @@ bool Mailbox::ready() const { 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; }