diff options
Diffstat (limited to 'common/philo.c')
| -rw-r--r-- | common/philo.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/common/philo.c b/common/philo.c deleted file mode 100644 index d342802..0000000 --- a/common/philo.c +++ /dev/null @@ -1,37 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* philo.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2020/02/09 01:54:53 by cacharle #+# #+# */ -/* Updated: 2020/02/14 21:21:02 by cacharle ### ########.fr */ -/* */ -/* ************************************************************************** */ - -#include "common.h" - -void philo_eat(int id, t_time timeout) -{ - philo_put_state_change(id, EVENT_EATING); - usleep(timeout * 1000); -} - -void philo_sleep(int id, t_time timeout) -{ - philo_put_state_change(id, EVENT_SLEEPING); - usleep(timeout * 1000); -} - -void philo_think(int id) -{ - philo_put_state_change(id, EVENT_THINKING); -} - -void philo_die(int id) -{ - philo_put_state_change(id, EVENT_DIED); -} - - |
