fix: sleeptime and eat time if time to die < time eat|sleep
This commit is contained in:
5
time.h
5
time.h
@ -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
|
||||
|
||||
Reference in New Issue
Block a user