Pushing from the laptop the sources
This commit is contained in:
parent
c2db9acc15
commit
6f7b3a44d2
2 changed files with 11 additions and 9 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/06/04 11:34:04 by rparodi #+# #+# */
|
||||
/* Updated: 2024/07/18 21:17:07 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/07/23 21:04:56 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -42,11 +42,11 @@ typedef struct s_philo
|
|||
t_usize t_eat;
|
||||
t_usize t_death;
|
||||
t_usize t_sleep;
|
||||
t_i32 nb_eat;
|
||||
t_usize nb_eat;
|
||||
pthread_t thread;
|
||||
t_i32 id;
|
||||
t_i32 eating;
|
||||
t_i32 eating_count;
|
||||
t_usize eating_count;
|
||||
t_usize t_last_eat;
|
||||
t_usize start_time;
|
||||
t_bool dead_check;
|
||||
|
|
@ -87,7 +87,7 @@ t_error ft_ending_eating(t_philo *philo);
|
|||
void ft_putchar_fd(t_i32 fd, t_str str);
|
||||
void ft_logs(t_str msg, t_philo *philo);
|
||||
t_error ft_atou(const char *nptr, t_usize *value);
|
||||
t_error ft_init_fork(t_philo *philo, t_mutex *fork);
|
||||
t_error ft_init_fork(t_mutex *fork, t_usize nb_fork);
|
||||
void counting_launch(t_philo *philo, t_u8 *counter);
|
||||
t_error ft_init_thread(t_program *prog, t_mutex *forks);
|
||||
t_error ft_parsing_args(t_i32 argc, t_str *argv, t_philo *philo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue