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
snake_case s4u::Comm
[simgrid.git]
/
src
/
s4u
/
s4u_mailbox.cpp
diff --git
a/src/s4u/s4u_mailbox.cpp
b/src/s4u/s4u_mailbox.cpp
index
32ab0bb
..
b8d0cf1
100644
(file)
--- a/
src/s4u/s4u_mailbox.cpp
+++ b/
src/s4u/s4u_mailbox.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2006-201
7
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2006-201
8
. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
@@
-16,14
+16,14
@@
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(s4u_channel,s4u,"S4U Communication Mailboxes");
namespace simgrid {
namespace s4u {
namespace simgrid {
namespace s4u {
-const simgrid::xbt::string& Mailbox::get
N
ame() const
+const simgrid::xbt::string& Mailbox::get
_n
ame() const
{
{
- return pimpl_->get
N
ame();
+ return pimpl_->get
_n
ame();
}
}
-const char* Mailbox::get
C
name() const
+const char* Mailbox::get
_c
name() const
{
{
- return pimpl_->get
C
name();
+ return pimpl_->get
_c
name();
}
MailboxPtr Mailbox::byName(const char*name)
}
MailboxPtr Mailbox::byName(const char*name)
@@
-79,7
+79,7
@@
CommPtr Mailbox::put_init()
s4u::CommPtr Mailbox::put_init(void* data, uint64_t simulatedSize)
{
s4u::CommPtr res = put_init();
s4u::CommPtr Mailbox::put_init(void* data, uint64_t simulatedSize)
{
s4u::CommPtr res = put_init();
- res->set
Remains
(simulatedSize);
+ res->set
_remaining
(simulatedSize);
res->srcBuff_ = data;
res->srcBuffSize_ = sizeof(void*);
return res;
res->srcBuff_ = data;
res->srcBuffSize_ = sizeof(void*);
return res;
@@
-97,8
+97,8
@@
void Mailbox::put(void* payload, uint64_t simulatedSize)
xbt_assert(payload != nullptr, "You cannot send nullptr");
CommPtr c = put_init();
xbt_assert(payload != nullptr, "You cannot send nullptr");
CommPtr c = put_init();
- c->set
Remains
(simulatedSize);
- c->set
SrcD
ata(payload);
+ c->set
_remaining
(simulatedSize);
+ c->set
_src_d
ata(payload);
c->wait();
}
/** Blocking send with timeout */
c->wait();
}
/** Blocking send with timeout */
@@
-107,8
+107,8
@@
void Mailbox::put(void* payload, uint64_t simulatedSize, double timeout)
xbt_assert(payload != nullptr, "You cannot send nullptr");
CommPtr c = put_init();
xbt_assert(payload != nullptr, "You cannot send nullptr");
CommPtr c = put_init();
- c->set
Remains
(simulatedSize);
- c->set
SrcD
ata(payload);
+ c->set
_remaining
(simulatedSize);
+ c->set
_src_d
ata(payload);
// c->start() is optional.
c->wait(timeout);
}
// c->start() is optional.
c->wait(timeout);
}
@@
-123,7
+123,7
@@
s4u::CommPtr Mailbox::get_init()
s4u::CommPtr Mailbox::get_async(void** data)
{
s4u::CommPtr res = get_init();
s4u::CommPtr Mailbox::get_async(void** data)
{
s4u::CommPtr res = get_init();
- res->set
DstD
ata(data, sizeof(*data));
+ res->set
_dst_d
ata(data, sizeof(*data));
res->start();
return res;
}
res->start();
return res;
}
@@
-132,7
+132,7
@@
void* Mailbox::get()
{
void* res = nullptr;
CommPtr c = get_init();
{
void* res = nullptr;
CommPtr c = get_init();
- c->set
DstD
ata(&res, sizeof(res));
+ c->set
_dst_d
ata(&res, sizeof(res));
c->wait();
return res;
}
c->wait();
return res;
}
@@
-140,7
+140,7
@@
void* Mailbox::get(double timeout)
{
void* res = nullptr;
CommPtr c = get_init();
{
void* res = nullptr;
CommPtr c = get_init();
- c->set
DstD
ata(&res, sizeof(res));
+ c->set
_dst_d
ata(&res, sizeof(res));
c->wait(timeout);
return res;
}
c->wait(timeout);
return res;
}