aboutsummaryrefslogtreecommitdiff
path: root/common/philo.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-30 07:59:27 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-30 07:59:27 +0200
commitd7aea773431926cefb6430b948329da1662d1dee (patch)
tree984fd10acf619ee8da84e7111742399a55a02770 /common/philo.c
parentb6f4db572d7d40c178ec286373422faa2172f135 (diff)
downloadphilosophers-d7aea773431926cefb6430b948329da1662d1dee.tar.gz
philosophers-d7aea773431926cefb6430b948329da1662d1dee.tar.bz2
philosophers-d7aea773431926cefb6430b948329da1662d1dee.zip
Refactoring common lib
Diffstat (limited to 'common/philo.c')
-rw-r--r--common/philo.c37
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);
-}
-
-