Implement the hunger watcher, rename function
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 24 May 2024 08:13:27 +0000 (10:13 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 24 May 2024 08:34:45 +0000 (10:34 +0200)
commit598e5a5851c2bce6f62ea9cb3dfab4b96af875ee
tree144a9f1286551c53bbbc043027e473a524361768
parentb6cb5048195b5ae512dc5a790da9198426a88b45
Implement the hunger watcher, rename function

The hunger watcher watches for starvation in calling philo
making him die when he starves (is hungry for too long).
The function print_timestamp is split to make it possible to
ensure the "philo died" message is the last one.
philo_bonus/Makefile
philo_bonus/helpers.c
philo_bonus/hunger_watcher.c [new file with mode: 0644]
philo_bonus/philo.c
philo_bonus/philo.h