aboutsummaryrefslogtreecommitdiff
path: root/philo/include/philo.h
diff options
context:
space:
mode:
authorDominik Kaiser2025-01-18 14:01:36 +0100
committerDominik Kaiser2025-01-18 14:01:36 +0100
commitfcbd39d9b3d4662ab58104f868d3d512847eae14 (patch)
tree9f0bd731924feb71b80e2e3947efa558dc2535df /philo/include/philo.h
parentf38b5cc6975fc2126f4a09f8417cfba5cbcd845c (diff)
downloadPhilosophers-fcbd39d9b3d4662ab58104f868d3d512847eae14.tar.gz
Philosophers-fcbd39d9b3d4662ab58104f868d3d512847eae14.zip
Finish up simulation
Diffstat (limited to 'philo/include/philo.h')
-rw-r--r--philo/include/philo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/philo/include/philo.h b/philo/include/philo.h
index 308857b..faf1bbf 100644
--- a/philo/include/philo.h
+++ b/philo/include/philo.h
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/17 10:23:19 by dkaiser #+# #+# */
-/* Updated: 2025/01/18 12:46:42 by dkaiser ### ########.fr */
+/* Updated: 2025/01/18 13:12:06 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -42,6 +42,7 @@ typedef struct s_phdata
typedef struct s_philo
{
int id;
+ int last_time_eaten;
int times_eaten;
int is_alive;
pthread_t thread;