A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove unused attribute name_ and method set_name()
[simgrid.git]
/
src
/
s4u
/
s4u_Mailbox.cpp
diff --git
a/src/s4u/s4u_Mailbox.cpp
b/src/s4u/s4u_Mailbox.cpp
index abbf92e21add9e8cd079cbe6d8543a4ac387250a..72facec07309aa7802834ab6bb0c689b72ba2dd4 100644
(file)
--- a/
src/s4u/s4u_Mailbox.cpp
+++ b/
src/s4u/s4u_Mailbox.cpp
@@
-34,17
+34,17
@@
Mailbox* Mailbox::by_name(const std::string& name)
return &mbox->piface_;
}
return &mbox->piface_;
}
-bool Mailbox::empty()
+bool Mailbox::empty()
const
{
return pimpl_->comm_queue_.empty();
}
{
return pimpl_->comm_queue_.empty();
}
-bool Mailbox::listen()
+bool Mailbox::listen()
const
{
return not this->empty() || (pimpl_->permanent_receiver_ && not pimpl_->done_comm_queue_.empty());
}
{
return not this->empty() || (pimpl_->permanent_receiver_ && not pimpl_->done_comm_queue_.empty());
}
-aid_t Mailbox::listen_from()
+aid_t Mailbox::listen_from()
const
{
kernel::activity::CommImplPtr comm = front();
if (comm && comm->src_actor_)
{
kernel::activity::CommImplPtr comm = front();
if (comm && comm->src_actor_)
@@
-53,7
+53,7
@@
aid_t Mailbox::listen_from()
return -1;
}
return -1;
}
-bool Mailbox::ready()
+bool Mailbox::ready()
const
{
bool comm_ready = false;
if (not pimpl_->comm_queue_.empty()) {
{
bool comm_ready = false;
if (not pimpl_->comm_queue_.empty()) {
@@
-65,7
+65,7
@@
bool Mailbox::ready()
return comm_ready;
}
return comm_ready;
}
-kernel::activity::CommImplPtr Mailbox::front()
+kernel::activity::CommImplPtr Mailbox::front()
const
{
return pimpl_->comm_queue_.empty() ? nullptr : pimpl_->comm_queue_.front();
}
{
return pimpl_->comm_queue_.empty() ? nullptr : pimpl_->comm_queue_.front();
}
@@
-76,7
+76,7
@@
void Mailbox::set_receiver(ActorPtr actor)
}
/** @brief get the receiver (process associated to the mailbox) */
}
/** @brief get the receiver (process associated to the mailbox) */
-ActorPtr Mailbox::get_receiver()
+ActorPtr Mailbox::get_receiver()
const
{
if (pimpl_->permanent_receiver_ == nullptr)
return ActorPtr();
{
if (pimpl_->permanent_receiver_ == nullptr)
return ActorPtr();