fix: sleeptime and eat time if time to die < time eat|sleep

This commit is contained in:
Camille Chauvet
2023-05-02 11:44:16 +00:00
parent 796e186c36
commit 5c309f2f02
3 changed files with 29 additions and 12 deletions

5
time.h
View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/27 11:32:57 by cchauvet #+# #+# */
/* Updated: 2023/04/27 11:54:55 by cchauvet ### ########.fr */
/* Updated: 2023/05/02 11:27:53 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
@ -17,6 +17,7 @@
# include <stddef.h>
size_t get_time(void);
size_t get_time_perfect(t_philo *philo, t_data *data);
size_t get_time_eat(t_philo *philo, t_data *data);
size_t get_time_sleep(t_philo *philo, t_data *data);
#endif