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
Translate the executed TestAny and WaitAny requests into Test and Wait ones.
[simgrid.git]
/
src
/
simix
/
smx_network.c
diff --git
a/src/simix/smx_network.c
b/src/simix/smx_network.c
index
8280532
..
e396a2d
100644
(file)
--- a/
src/simix/smx_network.c
+++ b/
src/simix/smx_network.c
@@
-372,7
+372,7
@@
void SIMIX_pre_comm_test(smx_req_t req)
}
}
}
}
-void SIMIX_pre_comm_testany(smx_req_t req,
unsigned
int idx)
+void SIMIX_pre_comm_testany(smx_req_t req, int idx)
{
unsigned int cursor;
smx_action_t action;
{
unsigned int cursor;
smx_action_t action;
@@
-380,7
+380,7
@@
void SIMIX_pre_comm_testany(smx_req_t req, unsigned int idx)
req->comm_testany.result = -1;
if (MC_IS_ENABLED){
req->comm_testany.result = -1;
if (MC_IS_ENABLED){
- if(
(int)
idx == -1){
+ if(idx == -1){
SIMIX_request_answer(req);
}else{
action = xbt_dynar_get_as(actions, idx, smx_action_t);
SIMIX_request_answer(req);
}else{
action = xbt_dynar_get_as(actions, idx, smx_action_t);
@@
-402,7
+402,7
@@
void SIMIX_pre_comm_testany(smx_req_t req, unsigned int idx)
SIMIX_request_answer(req);
}
SIMIX_request_answer(req);
}
-void SIMIX_pre_comm_waitany(smx_req_t req,
unsigned
int idx)
+void SIMIX_pre_comm_waitany(smx_req_t req, int idx)
{
smx_action_t action;
unsigned int cursor = 0;
{
smx_action_t action;
unsigned int cursor = 0;