mise a la norme et renommer fonctions

This commit is contained in:
Hugo LAMY
2022-01-26 15:33:29 +01:00
parent ab0c4efa35
commit b192efa4a9
13 changed files with 213 additions and 77 deletions

View File

@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* exec.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/01/26 15:30:28 by hulamy #+# #+# */
/* Updated: 2022/01/26 15:32:57 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
#include "philo.h"
void action_delay(t_philo *philo, int action_time)
@@ -45,7 +57,7 @@ void *philo_exec(void *arg)
{
t_philo *philo;
philo = (t_philo*)arg;
philo = (t_philo *)arg;
init_time(philo);
if (philo->p_nbr % 2 == 0)
usleep(10 * 1000);