tgrekov-philosophers
HIVE philosophers July 2024
|
Definition in file setup.c.
Go to the source code of this file.
Functions | |
static int | allocate (t_global *global, t_thread **thread) |
Allocate fork and thread arrays. | |
static int | initialize (t_global *global, t_thread *thread) |
Initialize forks and eating quota mutexes. | |
int | setup (t_global *global, t_thread **thread) |
Allocate fork array and thread structure, initialize mutexes. | |
Allocate fork array and thread structure, initialize mutexes.
global | |
thread |
int |
Definition at line 84 of file setup.c.
References allocate(), and initialize().