Added struct to death_monitor.c

This commit is contained in:
Rui Ribeiro 2025-10-09 20:51:02 +01:00
parent 4584560f1d
commit 9349239c84

View File

@ -6,7 +6,7 @@
/* By: ruiferna <ruiferna@student.42porto.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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;