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
Define CommImpl::type_ at construction.
[simgrid.git]
/
src
/
kernel
/
activity
/
MailboxImpl.cpp
diff --git
a/src/kernel/activity/MailboxImpl.cpp
b/src/kernel/activity/MailboxImpl.cpp
index
c84746a
..
f812f45
100644
(file)
--- a/
src/kernel/activity/MailboxImpl.cpp
+++ b/
src/kernel/activity/MailboxImpl.cpp
@@
-92,12
+92,10
@@
CommImplPtr MailboxImpl::iprobe(int type, bool (*match_fun)(void*, void*, CommIm
CommImplPtr this_comm;
CommImpl::Type smx_type;
if (type == 1) {
CommImplPtr this_comm;
CommImpl::Type smx_type;
if (type == 1) {
- this_comm = CommImplPtr(new CommImpl());
- this_comm->set_type(CommImpl::Type::SEND);
+ this_comm = CommImplPtr(new CommImpl(CommImpl::Type::SEND));
smx_type = CommImpl::Type::RECEIVE;
} else {
smx_type = CommImpl::Type::RECEIVE;
} else {
- this_comm = CommImplPtr(new CommImpl());
- this_comm->set_type(CommImpl::Type::RECEIVE);
+ this_comm = CommImplPtr(new CommImpl(CommImpl::Type::RECEIVE));
smx_type = CommImpl::Type::SEND;
}
CommImplPtr other_comm = nullptr;
smx_type = CommImpl::Type::SEND;
}
CommImplPtr other_comm = nullptr;