Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make sure that sthread_inside_simgrid is initially 1 to protect all lib constructors
[simgrid.git] / examples / sthread / pthread-mutex-simple.c
index ae928c2..f39de63 100644 (file)
@@ -27,8 +27,8 @@ int main(int argc, char* argv[])
   pthread_mutex_init(&mutex, NULL);
 
   pthread_t thread1, thread2;
-  fprintf(stderr, "prout\n");
   pthread_create(&thread1, NULL, thread1_fun, NULL);
+  fprintf(stderr, "here\n");
   pthread_create(&thread2, NULL, thread2_fun, NULL);
   // pthread_join(thread1, NULL);
   // pthread_join(thread2, NULL);