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
GRAS API BREAKAGE: allow users to never call gras_msgtype_by_name() explicitly, expec...
[simgrid.git]
/
src
/
gras
/
Msg
/
msg.c
diff --git
a/src/gras/Msg/msg.c
b/src/gras/Msg/msg.c
index
5306a32
..
6fcf0ad
100644
(file)
--- a/
src/gras/Msg/msg.c
+++ b/
src/gras/Msg/msg.c
@@
-300,7
+300,7
@@
gras_msgtype_t gras_msgtype_by_id(int id) {
*/
void
*/
void
-gras_msg_wait_ext(double timeout,
+gras_msg_wait_ext
_
(double timeout,
gras_msgtype_t msgt_want,
gras_socket_t expe_want,
gras_msgtype_t msgt_want,
gras_socket_t expe_want,
@@
-408,15
+408,15
@@
gras_msg_wait_ext(double timeout,
* and used by subsequent call to this function or gras_msg_handle().
*/
void
* and used by subsequent call to this function or gras_msg_handle().
*/
void
-gras_msg_wait(double timeout,
- gras_msgtype_t msgt_want,
- gras_socket_t *expeditor,
- void *payload) {
+gras_msg_wait
_
(double timeout,
+
gras_msgtype_t msgt_want,
+
gras_socket_t *expeditor,
+
void *payload) {
s_gras_msg_t msg;
s_gras_msg_t msg;
- gras_msg_wait_ext(timeout,
- msgt_want, NULL, NULL, NULL,
- &msg);
+ gras_msg_wait_ext
_
(timeout,
+
msgt_want, NULL, NULL, NULL,
+
&msg);
if (msgt_want->ctn_type) {
xbt_assert1(payload,
if (msgt_want->ctn_type) {
xbt_assert1(payload,
@@
-469,10
+469,10
@@
void gras_msg_wait_or(double timeout,
s_gras_msg_t msg;
VERB1("Wait %f seconds for several message types",timeout);
s_gras_msg_t msg;
VERB1("Wait %f seconds for several message types",timeout);
- gras_msg_wait_ext(timeout,
- NULL, NULL,
- &gras_msg_wait_or_filter, (void*)msgt_want,
- &msg);
+ gras_msg_wait_ext
_
(timeout,
+
NULL, NULL,
+
&gras_msg_wait_or_filter, (void*)msgt_want,
+
&msg);
if (msg.type->ctn_type) {
xbt_assert1(payload,
if (msg.type->ctn_type) {
xbt_assert1(payload,
@@
-497,7
+497,7
@@
void gras_msg_wait_or(double timeout,
/** \brief Send the data pointed by \a payload as a message of type
* \a msgtype to the peer \a sock */
void
/** \brief Send the data pointed by \a payload as a message of type
* \a msgtype to the peer \a sock */
void
-gras_msg_send(gras_socket_t sock,
+gras_msg_send
_
(gras_socket_t sock,
gras_msgtype_t msgtype,
void *payload) {
gras_msgtype_t msgtype,
void *payload) {
@@
-672,7
+672,7
@@
gras_msg_handle(double timeOut) {
if (!ran_ok) {
DEBUG4("Use the callback #%d (@%p) for incomming msg %s (payload_size=%d)",
cpt+1,cb,msg.type->name,msg.payl_size);
if (!ran_ok) {
DEBUG4("Use the callback #%d (@%p) for incomming msg %s (payload_size=%d)",
cpt+1,cb,msg.type->name,msg.payl_size);
- if ((*cb)(&ctx,msg.payl)) {
+ if (
!
(*cb)(&ctx,msg.payl)) {
/* cb handled the message */
free(msg.payl);
ran_ok = 1;
/* cb handled the message */
free(msg.payl);
ran_ok = 1;