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
implement getter s4u::Comm::mailbox()
[simgrid.git]
/
include
/
simgrid
/
s4u
/
Comm.hpp
diff --git
a/include/simgrid/s4u/Comm.hpp
b/include/simgrid/s4u/Comm.hpp
index
2032de7
..
a2c71d0
100644
(file)
--- a/
include/simgrid/s4u/Comm.hpp
+++ b/
include/simgrid/s4u/Comm.hpp
@@
-55,34
+55,34
@@
public:
return idx;
}
/** Creates (but don't start) an async send to the mailbox @p dest */
return idx;
}
/** Creates (but don't start) an async send to the mailbox @p dest */
- static CommPtr XBT_ATTRIB_DEPRECATED("please use Mailbox::
send
_init") // 3.17
+ static CommPtr XBT_ATTRIB_DEPRECATED("please use Mailbox::
put
_init") // 3.17
send_init(MailboxPtr dest)
{
send_init(MailboxPtr dest)
{
- return dest->
send
_init();
+ return dest->
put
_init();
}
/** Creates (but don't start) an async send to the mailbox @p dest */
}
/** Creates (but don't start) an async send to the mailbox @p dest */
- static CommPtr XBT_ATTRIB_DEPRECATED("please use Mailbox::
send
_init") // 3.17
+ static CommPtr XBT_ATTRIB_DEPRECATED("please use Mailbox::
put
_init") // 3.17
send_init(MailboxPtr dest, void* data, int simulatedByteAmount)
{
send_init(MailboxPtr dest, void* data, int simulatedByteAmount)
{
- return dest->
send
_init(data, simulatedByteAmount);
+ return dest->
put
_init(data, simulatedByteAmount);
}
/** Creates and start an async send to the mailbox @p dest */
}
/** Creates and start an async send to the mailbox @p dest */
- static CommPtr XBT_ATTRIB_DEPRECATED("please use Mailbox::
send
_async") // 3.17
+ static CommPtr XBT_ATTRIB_DEPRECATED("please use Mailbox::
put
_async") // 3.17
send_async(MailboxPtr dest, void* data, int simulatedByteAmount)
{
send_async(MailboxPtr dest, void* data, int simulatedByteAmount)
{
- return dest->
send
_async(data, simulatedByteAmount);
+ return dest->
put
_async(data, simulatedByteAmount);
}
/** Creates (but don't start) an async recv onto the mailbox @p from */
}
/** Creates (but don't start) an async recv onto the mailbox @p from */
- static CommPtr XBT_ATTRIB_DEPRECATED("please use Mailbox::
recv
_init") // 3.17
+ static CommPtr XBT_ATTRIB_DEPRECATED("please use Mailbox::
get
_init") // 3.17
recv_init(MailboxPtr from)
{
recv_init(MailboxPtr from)
{
- return from->
recv
_init();
+ return from->
get
_init();
}
/** Creates and start an async recv to the mailbox @p from */
}
/** Creates and start an async recv to the mailbox @p from */
- static CommPtr XBT_ATTRIB_DEPRECATED("please use Mailbox::
recv
_async") // 3.17
+ static CommPtr XBT_ATTRIB_DEPRECATED("please use Mailbox::
get
_async") // 3.17
recv_async(MailboxPtr from, void** data)
{
recv_async(MailboxPtr from, void** data)
{
- return from->
recv
_async(data);
+ return from->
get
_async(data);
}
void start() override;
}
void start() override;
@@
-112,6
+112,9
@@
public:
bool test();
void cancel();
bool test();
void cancel();
+ /** Retrieve the mailbox on which this comm acts */
+ MailboxPtr mailbox();
+
private:
double rate_ = -1;
void* dstBuff_ = nullptr;
private:
double rate_ = -1;
void* dstBuff_ = nullptr;