Skip to content
Snippets Groups Projects
Commit 716477bf authored by remi.greub's avatar remi.greub
Browse files

modif de printf, GET

parent 5d0b0615
Branches
No related tags found
No related merge requests found
......@@ -165,7 +165,7 @@ void *habitants(void *arg){
//waits for a bike in site i
//if(hab->i_site==4){
pthread_mutex_lock(&mutex[hab->i_site]);
printf("(GET) person %d starts from terminal %d (%d bykes, %d persons waiting, semVal : %d)\n", hab->num_thread, hab->i_site, sites[hab->i_site].nb_bikesParked, sites[j].nb_P_waiting, val);//sites[hab->i_site].nb_P_waiting);
printf("(GET) person %d starts from terminal %d (%d bykes, %d persons waiting, semVal : %d)\n", hab->num_thread, hab->i_site, sites[hab->i_site].nb_bikesParked, sites[hab->i_site].nb_P_waiting, val);//sites[hab->i_site].nb_P_waiting);
pthread_mutex_unlock(&mutex[hab->i_site]);
//}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment