From 9349239c847372cbba8ea292954ca789e2d9912d Mon Sep 17 00:00:00 2001 From: Rui Ribeiro <42305006+ruiribeiro04@users.noreply.github.com> Date: Thu, 9 Oct 2025 20:51:02 +0100 Subject: [PATCH] Added struct to `death_monitor.c` --- rendu/death_monitor.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rendu/death_monitor.c b/rendu/death_monitor.c index 3d84b80..c97f0bf 100644 --- a/rendu/death_monitor.c +++ b/rendu/death_monitor.c @@ -6,7 +6,7 @@ /* By: ruiferna +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/10/09 20:16:37 by ruiferna #+# #+# */ -/* Updated: 2025/10/09 20:45:22 by ruiferna ### ########.fr */ +/* Updated: 2025/10/09 20:47:14 by ruiferna ### ########.fr */ /* */ /* ************************************************************************** */ @@ -14,6 +14,13 @@ #define WORKERS 4 +// typedef struct { +// pthread_mutex_t mutex; +// struct timeval last_activity_time; +// int alive; // 1 if alive, 0 if dead +// } WorkerState; + + typedef struct s_shared { int id;