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
Change the prototype of xbt_thread_create(), sorry.
[simgrid.git]
/
examples
/
gras
/
synchro
/
philosopher.c
diff --git
a/examples/gras/synchro/philosopher.c
b/examples/gras/synchro/philosopher.c
index
5289892
..
9bda397
100644
(file)
--- a/
examples/gras/synchro/philosopher.c
+++ b/
examples/gras/synchro/philosopher.c
@@
-130,7
+130,7
@@
int philosopher(int argc, char *argv[])
/* spawn threads */
for (i = 0; i < philosopher_amount; i++) {
char *name = bprintf("thread %d", i);
/* spawn threads */
for (i = 0; i < philosopher_amount; i++) {
char *name = bprintf("thread %d", i);
- philosophers[i] = xbt_thread_create(name, philo_thread, &id[i]);
+ philosophers[i] = xbt_thread_create(name, philo_thread, &id[i]
,0/*not joinable*/
);
free(name);
}
free(name);
}