Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change the prototype of xbt_thread_create(), sorry.
[simgrid.git] / examples / gras / synchro / philosopher.c
index 5289892..9bda397 100644 (file)
@@ -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);
-    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);
   }