correction loop chained list

This commit is contained in:
hugogogo
2022-01-13 08:53:27 +01:00
parent 81f0ded5e3
commit bc40b571e9
5 changed files with 96 additions and 70 deletions

View File

@@ -23,8 +23,8 @@ int main(int ac, char **av)
philo = init(ac, av, &id);
if (philo == NULL)
return (0);
n = philo->conditions->n_phi;
pthread_mutex_init(&mutex, NULL);
n = philo->params->n_phi;
// pthread_mutex_init(&mutex, NULL);
create_threads(philo, id, n);
i = 0;
while (i < n)