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
add a Mailbox::byName(std::string) function
[simgrid.git]
/
src
/
s4u
/
s4u_mailbox.cpp
diff --git
a/src/s4u/s4u_mailbox.cpp
b/src/s4u/s4u_mailbox.cpp
index
cff1a5f
..
6e5f18d
100644
(file)
--- a/
src/s4u/s4u_mailbox.cpp
+++ b/
src/s4u/s4u_mailbox.cpp
@@
-34,6
+34,11
@@
MailboxPtr Mailbox::byName(const char*name)
return MailboxPtr(&mbox->piface_, true);
}
+MailboxPtr Mailbox::byName(std::string name)
+{
+ return byName(name.c_str());
+}
+
bool Mailbox::empty()
{
return pimpl_->comm_queue.empty();