![]() |
tgrekov-philosophers
HIVE philosophers July 2024
|
Definition in file breakfast.c.
Go to the source code of this file.
Functions | |
| static int | eat (t_thread *thread, int fork2) |
| Take forks, eat, release. | |
| void * | breakfast (void *arg) |
| Ponder, eat, sleep, repeat. | |
| void * breakfast | ( | void * | arg | ) |
Ponder, eat, sleep, repeat.
| arg |
| void* |
Definition at line 65 of file breakfast.c.
References eat(), philo_sleep(), status(), and stop().
|
static |
Take forks, eat, release.
| thread | |
| fork2 |
| int |
Definition at line 30 of file breakfast.c.
References philo_sleep(), status(), stop(), and timestamp().