ajout pdf et debut liste chainee en boucle

This commit is contained in:
hugogogo
2022-01-04 08:49:01 +01:00
parent a3821d5b15
commit 23f93e706a
5 changed files with 109 additions and 15 deletions

View File

@@ -8,10 +8,21 @@
# include <unistd.h>
# include <pthread.h>
typedef struct s_conditions
{
int n_phi; // number_of_philosophers
int t_die; // time_to_die
int t_eat; // time_to_eat
int t_slp; // time_to_sleep
int n_eat; // [number_of_times_each_philosopher_must_eat]
} t_conditions;
typedef struct s_philo
{
char *str;
int nbr;
} t_philo;
t_conditions *conditions;
int philo_nbr;
struct s_philo *prev;
struct s_philo *next;
} t_philo;
#endif