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
Give a way to add binaries to the list that shouldn't be messed with by sthread
[simgrid.git]
/
examples
/
smpi
/
mc
/
mutual_exclusion.c
diff --git
a/examples/smpi/mc/mutual_exclusion.c
b/examples/smpi/mc/mutual_exclusion.c
index 5481c91bee3bc64f5dce79056ad7b945d47c1959..235860c24d31a3be9d5778a56440e98a1cd38db9 100644
(file)
--- a/
examples/smpi/mc/mutual_exclusion.c
+++ b/
examples/smpi/mc/mutual_exclusion.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2014-202
0
. The SimGrid Team.
+/* Copyright (c) 2014-202
3
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-27,8
+27,6
@@
int main(int argc, char **argv){
exit(1);
}
exit(1);
}
- MC_ignore(&(status.count), sizeof(status.count));
-
/* Get number of processes */
MPI_Comm_size(MPI_COMM_WORLD, &size);
/* Get id of this process */
/* Get number of processes */
MPI_Comm_size(MPI_COMM_WORLD, &size);
/* Get id of this process */
@@
-43,7
+41,7
@@
int main(int argc, char **argv){
printf("CS already used. Queue the request.\n");
xbt_dynar_push(requests, &recv_buff);
}else{
printf("CS already used. Queue the request.\n");
xbt_dynar_push(requests, &recv_buff);
}else{
- printf("CS idle. Grant immediatly.\n");
+ printf("CS idle. Grant immediat
e
ly.\n");
MPI_Send(&rank, 1, MPI_INT, recv_buff, GRANT_TAG, MPI_COMM_WORLD);
CS_used = 1;
}
MPI_Send(&rank, 1, MPI_INT, recv_buff, GRANT_TAG, MPI_COMM_WORLD);
CS_used = 1;
}