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
stringify s4u::Mailbox and k::a::MailboxImpl
[simgrid.git]
/
src
/
s4u
/
s4u_Mailbox.cpp
diff --git
a/src/s4u/s4u_Mailbox.cpp
b/src/s4u/s4u_Mailbox.cpp
index
0170e6f
..
03c12aa
100644
(file)
--- a/
src/s4u/s4u_Mailbox.cpp
+++ b/
src/s4u/s4u_Mailbox.cpp
@@
-24,7
+24,7
@@
const char* Mailbox::get_cname() const
return pimpl_->get_cname();
}
return pimpl_->get_cname();
}
-MailboxPtr Mailbox::by_name(
const char*
name)
+MailboxPtr Mailbox::by_name(
std::string
name)
{
kernel::activity::MailboxImpl* mbox = kernel::activity::MailboxImpl::byNameOrNull(name);
if (mbox == nullptr) {
{
kernel::activity::MailboxImpl* mbox = kernel::activity::MailboxImpl::byNameOrNull(name);
if (mbox == nullptr) {
@@
-33,11
+33,6
@@
MailboxPtr Mailbox::by_name(const char* name)
return MailboxPtr(&mbox->piface_, true);
}
return MailboxPtr(&mbox->piface_, true);
}
-MailboxPtr Mailbox::by_name(std::string name)
-{
- return by_name(name.c_str());
-}
-
bool Mailbox::empty()
{
return pimpl_->comm_queue.empty();
bool Mailbox::empty()
{
return pimpl_->comm_queue.empty();