aboutsummaryrefslogtreecommitdiff
path: root/philo_two/philo_two.h
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-29 16:16:20 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-29 16:16:20 +0200
commitb6f4db572d7d40c178ec286373422faa2172f135 (patch)
tree03fd9601de99de8111994f487cfdacc7127ce6d0 /philo_two/philo_two.h
parent6bfcd3c6f921e7717e61167b291bb27bd3f66386 (diff)
downloadphilosophers-b6f4db572d7d40c178ec286373422faa2172f135.tar.gz
philosophers-b6f4db572d7d40c178ec286373422faa2172f135.tar.bz2
philosophers-b6f4db572d7d40c178ec286373422faa2172f135.zip
philo_two file restructuration
Diffstat (limited to 'philo_two/philo_two.h')
-rw-r--r--philo_two/philo_two.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/philo_two/philo_two.h b/philo_two/philo_two.h
deleted file mode 100644
index d239e34..0000000
--- a/philo_two/philo_two.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* philo_two.h :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/02/14 22:47:23 by cacharle #+# #+# */
-/* Updated: 2020/02/14 23:55:04 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#ifndef PHILO_TWO_H
-# define PHILO_TWO_H
-
-# include <pthread.h>
-# include <semaphore.h>
-# include "common.h"
-
-typedef struct
-{
- int id;
- t_philo_args *args;
- t_time time_last_eat;
- sem_t *forks;
-} t_routine_arg;
-
-/*
-** routine.c
-*/
-
-void *routine_philo(void *void_arg);
-void *routine_death(void *void_arg);
-t_routine_arg *routine_args_create(t_philo_args *philo_args, sem_t *forks);
-
-/*
-** io.c
-*/
-
-void io_eat(t_routine_arg *arg);
-void io_think(t_routine_arg *arg);
-void io_sleep(t_routine_arg *arg);
-void io_die(t_routine_arg *arg);
-
-#endif