-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphilosophers.h
More file actions
26 lines (22 loc) · 1.06 KB
/
philosophers.h
File metadata and controls
26 lines (22 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* philosophers.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mruggier <mruggier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/17 15:21:31 by mruggier #+# #+# */
/* Updated: 2024/01/17 18:13:20 by mruggier ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef PHILOSOPHER_H
# define PHILOSOPHER_H
# include <pthread.h>
#include <stdio.h>
typedef struct s_lock
{
pthread_mutex_t *forks;
pthread_mutex_t lock;
int ledger;
} t_lock;
#endif