ajout static, renames, pere fouettard tweaks

This commit is contained in:
Hugo LAMY
2022-01-26 16:31:36 +01:00
parent 6d3280631c
commit 77f2e6b978
9 changed files with 130 additions and 120 deletions

View File

@@ -32,11 +32,10 @@ typedef struct s_params
typedef struct s_global
{
int dead;
int n_eat;
int stop;
int satiated_count;
t_time t_start;
t_mtx m_print;
t_mtx m_dead;
} t_global;
typedef struct s_philo
@@ -46,7 +45,7 @@ typedef struct s_philo
int p_nbr;
t_mtx m_fork;
t_time t_last_meal;
int eat;
int eat_count;
struct s_philo *next;
} t_philo;