diff options
| author | Dominik Kaiser | 2025-01-17 12:06:21 +0100 |
|---|---|---|
| committer | Dominik Kaiser | 2025-01-17 12:06:21 +0100 |
| commit | ed1c486272f06d977d308a8bcaaa4b1dac12b6d7 (patch) | |
| tree | 153e37e19b5c2e540104753240f89af0c4c07852 /philo/include/philo.h | |
| parent | 7f62b82b1fcf64b1bb4fc6e536706a91ed99c492 (diff) | |
| download | Philosophers-ed1c486272f06d977d308a8bcaaa4b1dac12b6d7.tar.gz Philosophers-ed1c486272f06d977d308a8bcaaa4b1dac12b6d7.zip | |
Add ft_utils
Diffstat (limited to 'philo/include/philo.h')
| -rw-r--r-- | philo/include/philo.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/philo/include/philo.h b/philo/include/philo.h new file mode 100644 index 0000000..1ec9c3d --- /dev/null +++ b/philo/include/philo.h @@ -0,0 +1,34 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* philo.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2025/01/17 10:23:19 by dkaiser #+# #+# */ +/* Updated: 2025/01/17 12:01:01 by dkaiser ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef PHILO_H +# define PHILO_H + +# include <unistd.h> +# include <stdlib.h> +# include <stdio.h> +# include <pthread.h> +# include <sys/time.h> +# include "ft_utils.h" + +# define ERR_USAGE "Usage: <nbr_of_philos> <ttd> <tte> <tts> [times_must_eat]" + +typedef struct s_phdata +{ + int nbr_of_philos; + int time_to_die; + int time_to_eat; + int time_to_sleep; + int times_must_eat; +} t_phdata; + +#endif |
