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
Fix some more doc bugs
[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 9a3de8cf245d2f317deb22d54933d643e0e2d63c..235860c24d31a3be9d5778a56440e98a1cd38db9 100644
(file)
--- a/
examples/smpi/mc/mutual_exclusion.c
+++ b/
examples/smpi/mc/mutual_exclusion.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2014-20
19
. The SimGrid Team.
+/* Copyright (c) 2014-20
23
. 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
@@
-7,6
+7,7
@@
#include <stdio.h>
#include <mpi.h>
#include <simgrid/modelchecker.h>
#include <stdio.h>
#include <mpi.h>
#include <simgrid/modelchecker.h>
+#include <xbt/dynar.h>
#define GRANT_TAG 0
#define REQUEST_TAG 1
#define GRANT_TAG 0
#define REQUEST_TAG 1
@@
-26,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 */
@@
-42,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;
}