diff --git a/philo/inc/philo.h b/philo/inc/philo.h index 081f825..a58be48 100644 --- a/philo/inc/philo.h +++ b/philo/inc/philo.h @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/20 14:27:34 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:13:50 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:32 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/check_philos.c b/philo/src/check_philos.c index f5ffc1a..d3bc241 100644 --- a/philo/src/check_philos.c +++ b/philo/src/check_philos.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/27 14:13:50 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:13:51 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:33 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/create_mutexes.c b/philo/src/create_mutexes.c index 2cc172d..ac70e23 100644 --- a/philo/src/create_mutexes.c +++ b/philo/src/create_mutexes.c @@ -6,28 +6,12 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/20 14:26:44 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:13:51 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:34 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ #include "philo.h" -int create_philo_mutexes(t_philo *philo) -{ - philo->death_lock = malloc(sizeof(pthread_mutex_t)); - philo->last_meal_lock = malloc(sizeof(pthread_mutex_t)); - philo->n_eat_lock = malloc(sizeof(pthread_mutex_t)); - if (!philo->death_lock || !philo->last_meal_lock || !philo->n_eat_lock) - return (FAILURE); - if (pthread_mutex_init(philo->death_lock, NULL)) - return (FAILURE); - if (pthread_mutex_init(philo->last_meal_lock, NULL)) - return (FAILURE); - if (pthread_mutex_init(philo->n_eat_lock, NULL)) - return (FAILURE); - return (SUCCESS); -} - int create_mutexes(t_rules *rules) { int i; diff --git a/philo/src/create_philo_mutexes.c b/philo/src/create_philo_mutexes.c new file mode 100644 index 0000000..3b1aa15 --- /dev/null +++ b/philo/src/create_philo_mutexes.c @@ -0,0 +1,29 @@ +/* ************************************************************************** */ +/* */ +/* ::: o_ :::::: ::: */ +/* create_philo_mutexes.c :+: / :+::+: :+: */ +/* +:+ > +:++:+ +:+ */ +/* By: whaffman +#+ +:+ +#++#++:++#++ */ +/* +#+ +#+#+ +#++#+ +#+ \o/ */ +/* Created: 2025/01/28 17:29:34 by whaffman #+#+# #+#+# #+# #+# | */ +/* Updated: 2025/01/28 17:29:34 by whaffman ### ### ### ### / \ */ +/* */ +/* ************************************************************************** */ + +#include "philo.h" + +int create_philo_mutexes(t_philo *philo) +{ + philo->death_lock = malloc(sizeof(pthread_mutex_t)); + philo->last_meal_lock = malloc(sizeof(pthread_mutex_t)); + philo->n_eat_lock = malloc(sizeof(pthread_mutex_t)); + if (!philo->death_lock || !philo->last_meal_lock || !philo->n_eat_lock) + return (FAILURE); + if (pthread_mutex_init(philo->death_lock, NULL)) + return (FAILURE); + if (pthread_mutex_init(philo->last_meal_lock, NULL)) + return (FAILURE); + if (pthread_mutex_init(philo->n_eat_lock, NULL)) + return (FAILURE); + return (SUCCESS); +} diff --git a/philo/src/create_philos.c b/philo/src/create_philos.c index 73b1528..80ad565 100644 --- a/philo/src/create_philos.c +++ b/philo/src/create_philos.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/20 14:26:45 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:13:52 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:35 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/create_threads.c b/philo/src/create_threads.c index aff733b..fab6725 100644 --- a/philo/src/create_threads.c +++ b/philo/src/create_threads.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/20 14:26:45 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:13:53 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:35 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/destroy_mutexes.c b/philo/src/destroy_mutexes.c index be523d9..c125e36 100644 --- a/philo/src/destroy_mutexes.c +++ b/philo/src/destroy_mutexes.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/20 14:26:46 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:13:53 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:36 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/free_philos.c b/philo/src/free_philos.c index a5de9a7..ccc9478 100644 --- a/philo/src/free_philos.c +++ b/philo/src/free_philos.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/20 14:26:46 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:13:54 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:37 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/ft_min.c b/philo/src/ft_min.c index e2d9908..acbe5c6 100644 --- a/philo/src/ft_min.c +++ b/philo/src/ft_min.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/27 14:13:55 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:13:55 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:37 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/get_death.c b/philo/src/get_death.c index 96bf1a3..b49f2ce 100644 --- a/philo/src/get_death.c +++ b/philo/src/get_death.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/27 14:13:56 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:13:56 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:38 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/get_finished.c b/philo/src/get_finished.c index fbb0009..9aacb6e 100644 --- a/philo/src/get_finished.c +++ b/philo/src/get_finished.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/27 14:13:56 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:13:56 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:38 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/join_threads.c b/philo/src/join_threads.c index fbac5f3..54fda6d 100644 --- a/philo/src/join_threads.c +++ b/philo/src/join_threads.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/20 14:26:47 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:13:57 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:39 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/main.c b/philo/src/main.c index 32d43e3..c2e1aad 100644 --- a/philo/src/main.c +++ b/philo/src/main.c @@ -6,18 +6,12 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/20 14:26:48 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:13:58 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:39 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ #include "philo.h" -void print_usage(void) -{ - printf("Usage: ./philo n_philos time_to_die" - "time_to_eat time_to_sleep [n_must_eat]\n"); -} - int main(int argc, char *argv[]) { t_rules rules; diff --git a/philo/src/monitor_routine.c b/philo/src/monitor_routine.c index 61a144f..da9479c 100644 --- a/philo/src/monitor_routine.c +++ b/philo/src/monitor_routine.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/27 14:13:59 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:13:59 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:40 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/one_philo.c b/philo/src/one_philo.c new file mode 100644 index 0000000..3d7fab2 --- /dev/null +++ b/philo/src/one_philo.c @@ -0,0 +1,21 @@ +/* ************************************************************************** */ +/* */ +/* ::: o_ :::::: ::: */ +/* one_philo.c :+: / :+::+: :+: */ +/* +:+ > +:++:+ +:+ */ +/* By: whaffman +#+ +:+ +#++#++:++#++ */ +/* +#+ +#+#+ +#++#+ +#+ \o/ */ +/* Created: 2025/01/28 17:29:41 by whaffman #+#+# #+#+# #+# #+# | */ +/* Updated: 2025/01/28 17:29:41 by whaffman ### ### ### ### / \ */ +/* */ +/* ************************************************************************** */ + +#include "philo.h" + +void one_philo(t_philo *philo) +{ + pthread_mutex_lock(philo->l_fork); + print_status(philo, "has taken a fork"); + pthread_mutex_unlock(philo->l_fork); + philo_sleep(philo, philo->rules->time_to_die); +} diff --git a/philo/src/parse_arguments.c b/philo/src/parse_arguments.c index 021656a..a1139c5 100644 --- a/philo/src/parse_arguments.c +++ b/philo/src/parse_arguments.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/20 14:26:48 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:13:59 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:41 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/philo_die.c b/philo/src/philo_die.c index 17687ca..e687bf2 100644 --- a/philo/src/philo_die.c +++ b/philo/src/philo_die.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/27 14:14:00 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:14:00 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:42 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/philo_eat.c b/philo/src/philo_eat.c index d7458ea..39d5ab0 100644 --- a/philo/src/philo_eat.c +++ b/philo/src/philo_eat.c @@ -6,28 +6,12 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/27 14:14:01 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:14:01 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:42 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ #include "philo.h" -void take_forks(t_philo *philo) -{ - if (philo->id % 2 == 1) - { - pthread_mutex_lock(philo->r_fork); - print_status(philo, "has taken a fork"); - } - pthread_mutex_lock(philo->l_fork); - print_status(philo, "has taken a fork"); - if (philo->id % 2 != 1) - { - pthread_mutex_lock(philo->r_fork); - print_status(philo, "has taken a fork"); - } -} - int philo_eat(t_philo *philo) { take_forks(philo); diff --git a/philo/src/philo_routine.c b/philo/src/philo_routine.c index fdb24ea..faeb28f 100644 --- a/philo/src/philo_routine.c +++ b/philo/src/philo_routine.c @@ -6,34 +6,12 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/20 14:26:49 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:14:02 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:43 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ #include "philo.h" -void unlock_forks(t_philo *philo) -{ - pthread_mutex_unlock(philo->l_fork); - pthread_mutex_unlock(philo->r_fork); -} - -int think_time(t_rules *rules) -{ - int res; - - res = (rules->time_to_die - rules->time_to_eat - rules->time_to_sleep) / 5; - return (res); -} - -void one_philo(t_philo *philo) -{ - pthread_mutex_lock(philo->l_fork); - print_status(philo, "has taken a fork"); - pthread_mutex_unlock(philo->l_fork); - philo_sleep(philo, philo->rules->time_to_die); -} - void *philo_routine(void *arg) { t_philo *philo; diff --git a/philo/src/philo_sleep.c b/philo/src/philo_sleep.c index 4f6cd16..b5db742 100644 --- a/philo/src/philo_sleep.c +++ b/philo/src/philo_sleep.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/27 14:14:02 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:14:02 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:44 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/print_usage.c b/philo/src/print_usage.c new file mode 100644 index 0000000..a237475 --- /dev/null +++ b/philo/src/print_usage.c @@ -0,0 +1,17 @@ +/* ************************************************************************** */ +/* */ +/* ::: o_ :::::: ::: */ +/* print_usage.c :+: / :+::+: :+: */ +/* +:+ > +:++:+ +:+ */ +/* By: whaffman +#+ +:+ +#++#++:++#++ */ +/* +#+ +#+#+ +#++#+ +#+ \o/ */ +/* Created: 2025/01/28 17:29:44 by whaffman #+#+# #+#+# #+# #+# | */ +/* Updated: 2025/01/28 17:29:44 by whaffman ### ### ### ### / \ */ +/* */ +/* ************************************************************************** */ + +void print_usage(void) +{ + printf("Usage: ./philo n_philos time_to_die" + "time_to_eat time_to_sleep [n_must_eat]\n"); +} diff --git a/philo/src/set_death.c b/philo/src/set_death.c index a206a2a..9fc502c 100644 --- a/philo/src/set_death.c +++ b/philo/src/set_death.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/27 14:14:03 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:14:03 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:45 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/set_finished.c b/philo/src/set_finished.c index fb13a2a..10804d2 100644 --- a/philo/src/set_finished.c +++ b/philo/src/set_finished.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/27 14:14:04 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:14:04 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:46 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/synchronize_philos.c b/philo/src/synchronize_philos.c index d9d5f25..ad25ff1 100644 --- a/philo/src/synchronize_philos.c +++ b/philo/src/synchronize_philos.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/27 14:14:04 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:14:04 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:46 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/take_forks.c b/philo/src/take_forks.c new file mode 100644 index 0000000..394e9b9 --- /dev/null +++ b/philo/src/take_forks.c @@ -0,0 +1,29 @@ +/* ************************************************************************** */ +/* */ +/* ::: o_ :::::: ::: */ +/* take_forks.c :+: / :+::+: :+: */ +/* +:+ > +:++:+ +:+ */ +/* By: whaffman +#+ +:+ +#++#++:++#++ */ +/* +#+ +#+#+ +#++#+ +#+ \o/ */ +/* Created: 2025/01/28 17:29:47 by whaffman #+#+# #+#+# #+# #+# | */ +/* Updated: 2025/01/28 17:29:47 by whaffman ### ### ### ### / \ */ +/* */ +/* ************************************************************************** */ + +#include "philo.h" + +void take_forks(t_philo *philo) +{ + if (philo->id % 2 == 1) + { + pthread_mutex_lock(philo->r_fork); + print_status(philo, "has taken a fork"); + } + pthread_mutex_lock(philo->l_fork); + print_status(philo, "has taken a fork"); + if (philo->id % 2 != 1) + { + pthread_mutex_lock(philo->r_fork); + print_status(philo, "has taken a fork"); + } +} diff --git a/philo/src/think_time.c b/philo/src/think_time.c new file mode 100644 index 0000000..0f7e62b --- /dev/null +++ b/philo/src/think_time.c @@ -0,0 +1,21 @@ +/* ************************************************************************** */ +/* */ +/* ::: o_ :::::: ::: */ +/* think_time.c :+: / :+::+: :+: */ +/* +:+ > +:++:+ +:+ */ +/* By: whaffman +#+ +:+ +#++#++:++#++ */ +/* +#+ +#+#+ +#++#+ +#+ \o/ */ +/* Created: 2025/01/28 17:29:47 by whaffman #+#+# #+#+# #+# #+# | */ +/* Updated: 2025/01/28 17:29:47 by whaffman ### ### ### ### / \ */ +/* */ +/* ************************************************************************** */ + +#include "philo.h" + +int think_time(t_rules *rules) +{ + int res; + + res = (rules->time_to_die - rules->time_to_eat - rules->time_to_sleep) / 5; + return (res); +} diff --git a/philo/src/unlock_forks.c b/philo/src/unlock_forks.c new file mode 100644 index 0000000..47c9ccf --- /dev/null +++ b/philo/src/unlock_forks.c @@ -0,0 +1,19 @@ +/* ************************************************************************** */ +/* */ +/* ::: o_ :::::: ::: */ +/* unlock_forks.c :+: / :+::+: :+: */ +/* +:+ > +:++:+ +:+ */ +/* By: whaffman +#+ +:+ +#++#++:++#++ */ +/* +#+ +#+#+ +#++#+ +#+ \o/ */ +/* Created: 2025/01/28 17:29:48 by whaffman #+#+# #+#+# #+# #+# | */ +/* Updated: 2025/01/28 17:29:48 by whaffman ### ### ### ### / \ */ +/* */ +/* ************************************************************************** */ + +#include "philo.h" + +void unlock_forks(t_philo *philo) +{ + pthread_mutex_unlock(philo->l_fork); + pthread_mutex_unlock(philo->r_fork); +} diff --git a/philo/src/utils/get_time.c b/philo/src/utils/get_time.c index 83d0ce1..f200b79 100644 --- a/philo/src/utils/get_time.c +++ b/philo/src/utils/get_time.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/20 14:27:08 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:14:05 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:48 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/utils/ph_atoi.c b/philo/src/utils/ph_atoi.c index 9e2f33e..f1b4798 100644 --- a/philo/src/utils/ph_atoi.c +++ b/philo/src/utils/ph_atoi.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/20 14:27:09 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:14:05 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:49 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/utils/print_rules.c b/philo/src/utils/print_rules.c index 2f3d9ee..018db8c 100644 --- a/philo/src/utils/print_rules.c +++ b/philo/src/utils/print_rules.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/20 14:27:10 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:14:06 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:50 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ diff --git a/philo/src/utils/print_status.c b/philo/src/utils/print_status.c index 7a10913..204599c 100644 --- a/philo/src/utils/print_status.c +++ b/philo/src/utils/print_status.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2025/01/20 14:27:10 by whaffman #+#+# #+#+# #+# #+# | */ -/* Updated: 2025/01/27 14:14:07 by whaffman ### ### ### ### / \ */ +/* Updated: 2025/01/28 17:29:50 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */