aboutsummaryrefslogtreecommitdiff
path: root/common/philo.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/philo.c')
-rw-r--r--common/philo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/philo.c b/common/philo.c
index 484257e..dfc9278 100644
--- a/common/philo.c
+++ b/common/philo.c
@@ -6,19 +6,19 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/09 01:54:53 by cacharle #+# #+# */
-/* Updated: 2020/02/09 23:56:26 by cacharle ### ########.fr */
+/* Updated: 2020/02/14 00:29:17 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include "common.h"
-void philo_eat(int id, int timeout)
+void philo_eat(int id, t_time timeout)
{
philo_put_state_change(id, EVENT_EATING);
usleep(timeout * 1000);
}
-void philo_sleep(int id, int timeout)
+void philo_sleep(int id, t_time timeout)
{
philo_put_state_change(id, EVENT_SLEEPING);
usleep(timeout * 1000);