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
no need for the sendstr() pimple. use send() instead
[simgrid.git]
/
src
/
s4u
/
s4u_actor.cpp
diff --git
a/src/s4u/s4u_actor.cpp
b/src/s4u/s4u_actor.cpp
index
fb3fb0d
..
04544a0
100644
(file)
--- a/
src/s4u/s4u_actor.cpp
+++ b/
src/s4u/s4u_actor.cpp
@@
-91,10
+91,10
@@
void *s4u::Actor::recv(Mailbox &chan) {
return res;
}
return res;
}
-void s4u::Actor::send
str(Mailbox &chan, const char*msg
) {
+void s4u::Actor::send
(Mailbox &chan, void *payload, size_t simulatedSize
) {
Comm c = Comm::send_init(this,chan);
Comm c = Comm::send_init(this,chan);
- c.setRemains(s
trlen(msg)
);
- c.setSrcData(
xbt_strdup(msg),sizeof(char*)
);
+ c.setRemains(s
imulatedSize
);
+ c.setSrcData(
payload
);
c.wait();
}
c.wait();
}